![]() |
![]() Advanced DNS Management |
New ZoneEdit. New Managment. FREE DNS Is Back Sign Up Now |
![]() |
![]()
Post
#1
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 1 Joined: 2-February 17 Member No.: 19,228 ![]() |
Greetings!
I've been trying to use find in a loop routine to get the path/filenames from a text file containing only filenames. The text file has multiple filenames which correspond to files in various directories. I can run a find / -name command on a single value but when I put it in a loop to iterate through all the filenames in a list I cannot get find to output the path/filename into a variable or another text file list. This is the code I use: while read xFile; do echo $xFile xFl=$(find / -name $xFile) echo $xFl done < filelist.txt The result is that find stores a blank in the xFl variable which would mean that I would only be appending blanks to another text file list. I need help on this and would appreciate advice and recommendations. Thanks. |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 23rd April 2018 - 08:20 AM |