![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find files and display only directory list containing those files | r7p | UNIX for Dummies Questions & Answers | 4 | 06-05-2009 09:46 AM |
| I need a script to find socials in files and output a list of those files | NewSolarisAdmin | Shell Programming and Scripting | 1 | 02-19-2009 01:01 PM |
| ls > file - Creating file containing the list of all files present in a directory | pranavagarwal | Shell Programming and Scripting | 1 | 09-26-2008 09:37 PM |
| How to find the list of files | senthilk615 | Shell Programming and Scripting | 2 | 06-19-2007 02:43 AM |
| list read only files using find | vivekshankar | UNIX for Dummies Questions & Answers | 1 | 05-26-2005 05:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Creating a List of Files With Find
Hi, I need to go through all the files on my system and build a list/output file with the paths of all files where the first two characters within the file match an expression. I know I can use something like Code:
find . | xargs cut -b1-2 or Code:
find . -exec cut -b1-2 {} \;
to get the characters I need and then use grep to match it, but then I don't have the file path that I need. I may be going about this the totally wrong way, so any suggestions would be very appreciated. Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|