On Tue, Jan 05, 2010 at 02:00:31AM +0530, Foss User wrote: > $ ls [snip]
> > Of course, this doesn't do what I need. The names are split wherever > there are spaces. if you want to work with spaces in shell scripts have a look at IFS (man bash sh dash) the trick is SAVEIFS="$IFS" IFS=" " <do some work> IFS="$IFS" note the IFS= across 2 lines is correct [snip] > > What is the right way to do this? > > -- "I mean, there was a serious international effort to say to Saddam Hussein, you're a threat. And the 9/11 attacks extenuated that threat, as far as I�concerned." - George W. Bush 12/12/2005 Philadelphia, PA
signature.asc
Description: Digital signature