Question: Question 2 Write a program in C that stores 1000 random integers (100 1000), one on each line, in a file named numbers2.txt. Then using
Question 2 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
Get step-by-step solutions from verified subject matter experts
