I am trying to create a bash script for displaying only certain lines of the lsof command. I have figured out that the lsof command itself lists information in the form of columns which show info about correspondingly: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
How can I modify this info to output just the information about the command and the name of the file using it in format: COMMAND || NAME ?