![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing last character from each line of file | cjhancock | Shell Programming and Scripting | 17 | 08-29-2008 01:05 AM |
| removing particular lines ending with a .cnt extension in a text file | ramky79 | SUN Solaris | 2 | 03-03-2008 02:17 AM |
| Removing a particular line from a text file | sendhilmani123 | Shell Programming and Scripting | 5 | 05-31-2006 05:32 AM |
| Removing lines in a text file. | WABonnett | Shell Programming and Scripting | 4 | 11-25-2003 08:27 AM |
| removing commas from text file | hcclnoodles | UNIX for Dummies Questions & Answers | 6 | 03-26-2003 01:43 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
Quote:
split : perldoc -f split |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Same thing can be achieved by
Code:
sed 's/\(.*\) nul.*/\1]/' inuput_file |
|
#10
|
|||
|
|||
|
Quote:
|
|
#11
|
|||
|
|||
|
yes, i should've said, "don't have to use too much regular expression". generally, the if the operation is not too complex, simple regex or string functions will suffice.
|
|||
| Google The UNIX and Linux Forums |
| Tags |
| awk, perl script |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|