Computer Science, asked by shails8545, 1 year ago

Write a command to list all the lines from the file "employee.txt" ending with semi colon.

Answers

Answered by karthik4297
22
grep ';' employee.txt;
Answered by hotelcalifornia
4

Answer:

Command to "list all the lines" from the file "employee.txt" ending with "semi colon" is:

grep ‘;’ employee.txt.

"Grep command" is used to find out the given file with specified pattern and displays all the lines matching the pattern. Grep command format is grep [option] pattern [files]. Option is used to define the type of output required. Example: grep –c ‘;’ employee.txt will display the count of the lines containing the pattern ‘;’.  

Similar questions