Sample Header Ad - 728x90

grab only name column of lsof?

2 votes
2 answers
1507 views
I have the following command that works great: sudo lsof -w -c smbd -u myuser | grep '.txt' I just want to get the full path to the file name part of the returned output, the "NAME" column, to put in a report. What is the easiest way to just grab the NAME column?
Asked by NewToLinux
Jan 9, 2022, 05:28 AM
Last activity: May 7, 2024, 03:01 PM