Im currently running this command to satisfy a particular task. it works for my purposes. but i want to be able to optimize this string of commands and have it be reduced to 1 or 2 commands, if at all possible:
Not sure that pipe makes any sense at all. wc in a pipe prints three fields (four if operating on file parameters), so the following awk doesn't have a $5 to print.
WHAT exactly do you want to achieve?