I want to run these two commands one after the other.
awk 'BEGIN {OFS="\t"} {print $2}'
sort -u
rather than typing awk 'BEGIN {OFS="\t"} {print $2}' file1 > file2, then sort -u file2 > file3. Is it possible to run both commands on file1 then get output file3?
Its kinda hard for me to explain but i hope its clear
If the commands aren't operating on output of previous commans, you can just put them all in a file and (after giving it execute perms - often "chmod 755 file") run that file instead: