![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete a portion of a line using shell scripting | Loy81 | Shell Programming and Scripting | 3 | 08-25-2008 02:54 PM |
| Cutting a portion of a line seperated by pipe delimiter | ragavhere | UNIX for Dummies Questions & Answers | 3 | 06-21-2008 01:29 PM |
| awk program to select a portion of a line | anju | Shell Programming and Scripting | 3 | 01-11-2008 06:33 AM |
| erasing portion of line with sed (only once) | gammaman | UNIX for Dummies Questions & Answers | 1 | 07-14-2005 09:40 PM |
| erasing portion of line with sed | gammaman | UNIX for Dummies Questions & Answers | 5 | 07-10-2005 11:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Print a portion of a line
Hi,
I am facing a little problem... I have a line like this : asdcvashfasashXXXXxxxzxcadd:sdcashjqdasdsmgdkdaxdsnd; I want to print just a portion of line i.e starting from left 5 characters from ":" and upto ";" i.e. in this case it would be "xcadd:sdcashjqdasdsmgdkdaxdsnd;" The length of right most string can vary but end with ";". Also what to do if I want to print just 5 character left to ";" Thanks in advance. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|