Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
I understand you wanting to keep the code "clean", but echo is a shell internal and doesn't actually spawn any processes. When you pipe from echo, you are doing exactly what you say you want to do: taking the contents of a file and dumping them to awk - and this does NOT spawn a process. "echo $var" is simply how you tell the shell to perform this operation. -- Casey Callendrello On Feb 27, 2008, at 12:18 PM, Ben Eisenbraun wrote: > > I write a lot of sh scripts that do something like this: > > FOO=`someprogramthatproducesoutput` > > and then: > > echo $FOO | awk | sed | etc > > to mangle/unmangle the string in $FOO. > > Is there a way to get at the string in $FOO without using echo? > > -b > > -- > character is fate. <heraclitus> > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > Discuss mailing list > [hidden email] > http://lists.blu.org/mailman/listinfo/discuss
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |