Hi, 3.a. cat <filename>|grep <pattern>|wc -l
NOTE: (if same pattern appears more than 1 time on same line the above won't help) 3.b. tail <file name> Warm regards, Sathish.j On Sun, 9 Dec 2001, Yogesh Dhond wrote: > 3.(a) Use grep command to find each line of a givenfile that contains some > required pattern and displays the number of occurances.10marks > (b) Write a command to diplay the last 10 lines in a file. > 5. Transalte all the files in uppercase in a particular directory > > yogi > _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ > Never fear shadows. > They simply mean there's a light shining somewhere nearby. > _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ > > > _______________________________________________ > linux-india-help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/linux-india-help > _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
