head -10 filename | tail -1
who am i | cut -f1 -d’ ‘
Write a command to print the lines that has the the pattern “july” in all the files in a particular directory?
grepjuly * This will print all the lines in all files that contain the word “july” along with the file name. If any of the files contain words like “JULY” or “July”, the above command would not print those lines.
sed ‘s/\(apple\) \(mango\)/\2 \1/’ < filename