Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gaspence

  1. gaspence

    awk -- get last field

    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
  2. gaspence

    awk -- get last field

    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
  3. gaspence

    awk -- get last field

    Thanks everybody, fantastic. PHV's solution worked best for my case.
  4. gaspence

    awk -- get last field

    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...

Part and Inventory Search

Back
Top