ismaeel_ali
New Member
Hi all,
I have been given the homework to complete a bunch of searches using the grep command. However, my teacher did not explain it that well... Could someone perhaps explain how i should go about doing it?
1) "In the ‘searching’ folder, search the ‘countries’ file for all entries containing ‘j’. Write the output to a file called ‘output’ in the searching directory. What is the token displayed?"
2) "Inside the ‘searching’ folder, search the ‘countries’ file for all entries containing the word ‘united’. Write the output to a file call ‘united’ in the searching directory. What is the token displayed?"
3) "Inside the ‘searching’ folder, sort the ‘countries’ file in reverse order and write the output to a file call ‘yrtnuoc’ in the searching directory. What is the token displayed?"
I have been given the homework to complete a bunch of searches using the grep command. However, my teacher did not explain it that well... Could someone perhaps explain how i should go about doing it?
1) "In the ‘searching’ folder, search the ‘countries’ file for all entries containing ‘j’. Write the output to a file called ‘output’ in the searching directory. What is the token displayed?"
2) "Inside the ‘searching’ folder, search the ‘countries’ file for all entries containing the word ‘united’. Write the output to a file call ‘united’ in the searching directory. What is the token displayed?"
3) "Inside the ‘searching’ folder, sort the ‘countries’ file in reverse order and write the output to a file call ‘yrtnuoc’ in the searching directory. What is the token displayed?"