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