I want to grep two or three lines from a set of files and put the grepped lines into again a set of files.like
file1-greppedfile1
file2-greppedfile2
then again do some format to the grepped files with sed or awk then create another set of files.
How can I do this in loop?
2.I want to grep a date within a file.The date is at almost end of the file
but there are also some dates above the last date format which i have to grep.
Do not post questions without trying to solve the problem yourself based on your understanding. Post what have you tried so far and where exactly are you stuck?
Hi,
I am beginner in shell scripting.I have done the grep for one file like
grep -i 'abcd' from file1>file2
grep '1234' from file1>>file2
then by awk I have divided '1234/234' and appended file2>file3.
This I have to do it for 5 files.
for each file there must be seperate result file.I can do it manually but this is to be run like a job.
I hope you got my my problem..