1- Create file “data” and save the following information:
plym fury 77 73 2500
chevy nova 79 60 3000
ford mustang 65 45 17000
volvo gl 78 102 9850
ford ltd 83 15 10500
Chevy nova 80 50 3500
fiat 600 65 115 450
honda accord 81 30 6000
ford thundbd 84 10 17000
toyota tercel 82 180 750
chevy impala 65 85 1550
ford bronco 83 25 9525
2- Execute the following command to get the output:
grep -n "50$" data
grep -n "^f[oi]" data
grep -En " [6-7][0-9] " data
sed ‘3,5 d’ data
Sed ‘2 q’ data
3- Using grep command to write a regular expression to extract the values from last column between 1000 to 5000.
4- Write the awk command to display the 3rd and 1st fields of all lines that contain the string “ford” in the file data
5- Using the vi command you would use to replace all occurrences of “ford” with “BMW”