Finding files with the name of the results of another search
Dear All,
I have a file with this name= xx-nnnn.csv , I has texts in this format,
now I want to take take all the second fields as the search parameter, and find the files with files names containing this
for example all the files with *234317862284705793*.csv or *234317958632054785.csv
Thank u in advance.
best,
David
Last edited by Don Cragun; 09-23-2014 at 03:43 AM..
Reason: Add CODE and ICODE tags.
Dear All,
I have a file with this name= xx-nnnn.csv , I has texts in this format,
now I want to take take all the second fields as the search parameter, and find the files with files names containing this
for example all the files with *234317862284705793*.csv or *234317958632054785.csv
Thank u in advance.
best,
David
Is the file named xx-nnnn.csv in the same directory as the files with names like *234317862284705793*.csv and *234317958632054785.csv? Why do you need an asterisk after the numbers found in the 2nd field in xx-nnnn.csv for the data on the 1st line of the file, but do not need one for the data on the 2nd and 3rd lines in the file? Why is the data on other lines in that file ignored?
After you find the names, what do you want to do with them?
This User Gave Thanks to Don Cragun For This Post:
Thank you so much,
yes in the same directory, we just assume * , actually all the files have the same pattern, important is to have these numbers containing in the file name.
it is for every line, it was just an example.
just show the file names.thank u so much
Hey,
I added an animation switch on the search results page; so by default the thread previews are off, but if you want to look at them, just click on the green button and the thread previews will turn on (and back off).
See image and attached animation:
... (1 Reply)
Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Hi,
this is a little strange, i have the following code:
if
then
echo -e "psa/admin/sbin present "
which shows if a directory is present, but what I would like it to do is show the line and then remove its self and show the rest of the script... no idea what to look... (1 Reply)
Hi all,
I'm new to awk and I'm experiencing syntax error that I don't know how to resolve. Hopefully some experts in this forum can help me out.
I created an awk file that look like this:
$ cat myawk.awk
BEGIN {
VAR1=PATTERN1
VAR2=PATTERN2
}
/VAR1/ { flag=1 }
/VAR2/ { flag=0 }
{... (7 Replies)
Hi, I am a newbie at Unix scritping, and I have a question.
Looking at the search functionality on Unix. Here I have a structure
root---------dir1 ------- file1, file2, file3
|_____dir2 ______file1@, file4
|_____dir3_______file1@, file5
Under root directory, I... (4 Replies)