Thanks 'futurelet', and everyone else for the great answers and suggestions. I have learned a few new handy tricks just from this brief thread. You folks are another one of the reasons I love Unix ;- }
I'll be clicking the google ads in hope of supporting this fine site.
gaspence
Thanks for the tips on emptying the fields and using 'ls' to return a result. But as "futurelet" mentioned, double(+) spaced filenames are still coming out as a single spaced name...
foo bar ## has 5 spaces
prints as...
foo bar ## has one space
Is there a way I can use 'awk' to return the last field of a query. For instance, lets say I have a file named 'abc def.txt' (Note: there is a white space between 'abc' and 'def.txt'). When I run the following command it does not return the complete file name for files with spaces in their...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.