Contents of part3.1.awk
{
current_line=$0
if (current_line!=prev)
{
print $1 " -> " " -> " $5 " -> " $8
}
prev=$0
}
To get the list of processes, i run this in terminal. I want to get output with removed duplicates and sorted too.
$ps -ef | awk -f part3.1.awk | sort
What wrong am i doing?