Question: Write a program in C that stores 1000 random integers (100 1000), one on each line, in a file named numbers2.txt. Then using shell pipes

Write a program in C that stores 1000 random integers (100 1000), one on each line, in a file named numbers2.txt. Then using shell pipes with cat and grep commands, find lines that contain numbers between 200 and 299. Hint: use regular expressions and search for lines beginning with 2.

Sample Run: $ ./question2 $ cat [...] | grep [...]

258

244 ...

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!