![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| how to find the common numbers in two files | vamshi | UNIX and Linux RSS News | 2 | 08-19-2008 01:15 AM |
| Merging two files with a common column | manneni prakash | Shell Programming and Scripting | 2 | 06-20-2008 02:19 AM |
| To find all common lines from 'n' no. of files | The Observer | Shell Programming and Scripting | 11 | 06-16-2008 02:22 PM |
| COMMON_ROOT=/files/common: is not an identifier | nitinmoriwal | UNIX for Advanced & Expert Users | 2 | 08-25-2006 08:38 AM |
| Get un common numbers from two files | jingi1234 | UNIX for Dummies Questions & Answers | 3 | 10-19-2005 08:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
File names, or files containing abc on the first line?
Code:
# File names matching abc* older than one month and newer than two months
find . -name 'abc*' -mtime +30 -mtime -60
# Files containing abc in the first three bytes
find . -mtime +30 -mtime -60 -exec sh -c 'sed -n "/^abc/p;q" {} | grep -q . && echo {}' \;
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|