Is there any bash command that will let you get the nth line of STDOUT?
That is to say, something that would take this
$ ls -l -rw-r--r--@ 1 root wh
From sed1line:
# print line number 52 sed -n '52p' # method 1 sed '52!d' # method 2 sed '52q;d' # method 3, efficient on large files
From awk1line:
# print line number 52 awk 'NR==52' awk 'NR==52 {print;exit}' # more efficient on large files