Write a bash script to print a particular line from a file: awk = $ awk '{if(NR==LINE_NUMBER) print $0}' file.txt sed = $ sed -n LINE_NUMBERp file.txt
$ cat sample_file.txt | awk 'NR==9' #[Prints 9th line]