Question: Linux Ubuntu Shell Script For a file blabla.txt given as parameter write two different shell scripts to figure out the size of the blabla.txt file

Linux Ubuntu Shell Script

For a file blabla.txt given as parameter write two different shell scripts to figure out the size of the blabla.txt file in bytes. Only the size should be printed on the console.

For blabla1.txt and blabla2.txt given as parameters for your shell script, print out the two files altogether how many lines do they contain without modifying the original files! Only the number of lines should be printed on the console (standard output)

Given the files bla.txt, blu.TxT and bli.Txt in the current repository provide a single Linux command which will list only the bla.txt and the bli.Txt. For the filename matching only one regular expression is to be used.

Given a text file blabla.txt, print the list of lines which contain patterns such as: lowercase letter a or b or c followed by uppercase letter X or Y followed by a single digit. How many words these specific lines do contain? Print only one number to the screen.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!