1. HIGH SCORE cut -d '|' -f 2,5 tmp/prog.txt | sort -t '|' -k2,2nr | awk '{print $1$2}' | head -n 3 output: AlexaAndrews FionaFerguson EddieEricsson ----------------------------------------------------------------------------------------------------------------------------------- 2. LINE NUMBERS read -p "Enter the word" word result=$(grep -ni "$word" introduction.txt) echo $result output: Enter the word :Alarum 1:I introduce to you, Alarum 4: This is where I find Alarum -------------------------------------------------------------------------------------------------------------------------------------- 3. ’THE’ CODE grep -i “the” filename.txt (or) Filename =” “ grep -i “the” $filename.txt output: -i ===== è it is case insensitive ---------------------...
Comments
Post a Comment