![]() |
|
|
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 |
| How to trim the white space around a string in C program | hxm1303 | High Level Programming | 18 | 10-17-2008 11:43 AM |
| 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 |
|
|
|
||||
|
Hi All, I know there's a really simple answer to this but I just can't think of it ![]() I'm processing a file which has lines containing white space i.e. Quote:
Code:
for US in $( cat /tmp/unique-strings.tmp | sed 's/\[/\\[/g' | sed 's/\]/\\]/g' | sed 's/\//\\\//g' ) do echo "" echo "$US" echo "" done Each line gets broken down into it's component parts like this: Quote:
Thanks, p. |
|
||||
|
Quote:
![]() Believe it or not it's the first time I've used a while statement in one of my scripts! ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|