[Gllug] Pipe question

Ben Fitzgerald ben_m_f at yahoo.co.uk
Mon Jan 23 00:05:25 UTC 2006


On Sun, Jan 22, 2006 at 10:36:31PM +0000, Tom Schutzer-Weissmann wrote:
> On Sun, 2006-01-22 at 19:17 +0000, Ben Fitzgerald wrote:
> 
> > $ for x in `locate mysharedobject.so`; do ls -lia $x ;done
> 
> If there were spaces in the lines returned by locate this would bork, so
> don't forget to temporarily set IFS to only include a linebreak:
> 
> ~$ IFS='
> >'

true. we could also take care for other characters that also wouldn't
appear in a shared object but that wouldn't be a good use of our time,
would it!

I believe the spirit of the question was answered (though others have
mentioned timestamps)

cheers,

ben.

-- 
Registered Linux user number 339435
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list