![]() |
|
|
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 |
| Add white space to the end of a line with sed | karlanderson | Shell Programming and Scripting | 7 | 03-09-2009 06:20 AM |
| Add new lines with a space in beginning | Aejaz | UNIX for Advanced & Expert Users | 8 | 05-01-2008 01:21 PM |
| stripping white space... | Zak | Shell Programming and Scripting | 7 | 10-09-2007 08:41 AM |
| How to get just the word and clean the white space? | paulofp | Shell Programming and Scripting | 2 | 06-22-2007 07:28 PM |
| How to keep white space is being deleted using read | keelba | Shell Programming and Scripting | 1 | 05-30-2002 03:15 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Remove white space at the beginning of lines
Hi!
I store some data obtained with grep or awk in a file. The problem is that some lines have white space at the begining : [w h i t e s p a c e]line1 line2 [whitespace]line3 I use something like grep WORD INFILE >> OUTFILE awk [script] >> OUTFILE I would love if it were possible to remove the white whitout parsing the OUTFILE after the grep or awk command. Is there an option like I could put in the grep or awk saying "keep only what is at left of the white space"? Any better idea? Thanks a lot, Tipi |
| Bookmarks |
| Tags |
| grep or |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|