Copy and paste the following, as is, into the command lineat the top
level directory, or use the 2nd version if you want to specify the
absolute starting folder.
NOTE:
1. iname doesn't care if the name is upper or lower case
2. -ls gives the complete path in the output listing, one file per line.
The -ls option outputs like the 'ls' command.
3. The single quotes are imperative to prevent the shell from
preprocessing the search filename.
The find command receives your search text as you intended.
1st Version:
find . -iname '*google_transit.zip" -ls
2nd Version:
find /projects/django-stringer/txc -iname '*google_transit.zip' -ls
On 01/23/2013 07:58 PM, Andrew Taylor wrote:
Hi,
I'm struggling to figure out if I can do this in bash - can anyone
offer me some advice? Within this folder:
/projects/django-stringer/txc
I have about 30 sub-folders. each one contains a folder within a
folder that contains a file called "google_transit.zip" I'd like to
print out this list of paths in full if I can. An example path would be:
/home/andyt/projects/django-stringer/txc/OId_CW/GTFS/google_transit.zip
Thanks!
Andy
--
You received this message because you are subscribed to the Linux
Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules
(http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf)
--
Blues
--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or
http://cdn.fsdev.net/List-Rules.pdf)