Advertisement

05.06.2008 at 04:02AM PDT, ID: 23379016
[x]
Attachment Details

Korn Shell: How to remove the last character of any row, IF it is a semicolon?

Asked by CRISTIANO_CORRADI in HP-UX Unix, Operating Systems Development

Tags: HP UX, Unix, Unix Korn Shell scripting

Hello,

I have to parse a text file.  If every row ends with semicolon (;), I have to remove semicolon.

How would you realize that in Korn Shell?Start Free Trial
[+][-]05.06.2008 at 04:04AM PDT, ID: 21506194

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: HP-UX Unix, Operating Systems Development
Tags: HP UX, Unix, Unix Korn Shell scripting
Sign Up Now!
Solution Provided By: sunnycoder
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.06.2008 at 06:58AM PDT, ID: 21507305

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628