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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. coops1102

    Output every field except the last

    I have a file containing a list of directories of varying depths. Basically I want to remove the last directory (i.e field) in each case. I know I can get at the last field with NF but I don't know how to output everything except $(NF), any suggestions appreciated.

Part and Inventory Search

Back
Top