I have a textfile (file1.txt) with multiple lines of data.
This textfile I'm using to copy data from a directory A to another B. My script looks if an expression is included in a filename of a file stored in A.
In the directory A I grep another textfile (file2.txt) to get information (rows like
[bla][0-9][0-9][bla][0-9][0-9]) that I want to exclude in my script.
set x = `grep '[bla][0-9][0-9][bla][0-9][0-9]' file1.txt`
foreach i ( $x )
cp A/*$i* B/.
For example rows in file1.txt:
and grep result from file2.txt that has to be excluded for the loop
My script should finally only use the following lines
How can I do this?