Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Solve this question in 1 0 minutes. Thank you

Answered: 1 week ago

Question

Question What is a Roth 401(k) feature?

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago