![]() |
|
|
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 |
| SED command ---------help needed | veerapureddy | Shell Programming and Scripting | 4 | 03-17-2008 05:12 PM |
| help needed in fuser command | anju | Shell Programming and Scripting | 1 | 02-20-2008 02:08 AM |
| help needed in ls command | anju | Shell Programming and Scripting | 1 | 02-18-2008 07:20 AM |
| Help needed on Date command | nikunj | Shell Programming and Scripting | 5 | 07-08-2006 12:37 PM |
| Help needed for ps command in AIX | moe2266 | AIX | 0 | 09-30-2005 12:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi all,
I need some help with sed command. I'm trying to move all the files with a modified date within 12:00 - 13:00. What i'm doing here is to do is ls -lt | grep 'Jun 22 12:' > list.txt to get all file names within that period. However how do i strip off -rw-r--r-- 1 enfoot adi 1816 Jun 22 14:34 and leave just the filename in a list and do a cp -p command to copy all files with the permissions to another new directory? Any help will be appreciated! OS is solaris 10.2. Regards, Alvin |
|
||||
|
I would actually do it like this:
touch -d "Jun 22 11:59" /tmp/first touch -d "Jun 22 13:00" /tmp/last find . -maxdepth 1 -newer /tmp/first ! -newer /tmp/last -exec cp -p {} somewhere \; But that's just me. I also use cygwin, so YMMV. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|