Hello,
I have a list of files. I need to look in the first file and grep for a certain expression. I also need to look in the last file to look for a different expression.
Can you suggest the best way to do it?
I am getting the list of file names as a result of grep. How can I find what is the first and what is last the last (word?) in this result. I guess I have to pass it to two variables for further use.
Please suggest.
Thank you.
Vlada
I have a list of files. I need to look in the first file and grep for a certain expression. I also need to look in the last file to look for a different expression.
Can you suggest the best way to do it?
I am getting the list of file names as a result of grep. How can I find what is the first and what is last the last (word?) in this result. I guess I have to pass it to two variables for further use.
Please suggest.
Thank you.
Vlada