Time sensative (linux). Please 1)Show all lines that have only the word hello in file file1. 2)Show all...

50.1K

Verified Solution

Question

Programming

Time sensative (linux). Please

1)Show all lines that have only the word hello in filefile1.

2)Show all lines that have at least five characters.

3)Show all lines that have only 5 digits.

4)Write the command to find out the number of words in the filefile1.

5)Write the command to substitute all the words Unix to Linux ina file called file1.

6)Write the command to rename the file file1 to file2.

7)Write the command to list only the directories in the currentfolder.

8)Use the sed command to print lines 6 to 10. Modify thatcommand to place lines 6 to 10 of file1 into file2.

9)A file has three columns. In column-1 the name of employee andin column-2 he salary of employee is given.

10)Write the line to display the name of employees that makemore than 50000.

11)Write a script to read three numbers and find the sum ofthese numbers. Find the largest number. Display the largest numberand the sum.

Answer & Explanation Solved by verified expert
3.8 Ratings (306 Votes)
1 grep i hello file1txt Grep command is used to search for the pattern and i is the option it iteratively searches the file for the pattern and it displays it encounters the word 2 grep r 5 file1txt To    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students