Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 04:00 PM
07-14-2004 04:00 PM
---------------------------------------------
/tmp/jeff#ll
total 48
-rw-rw-rw- 1 root sys 247 Jul 14 17:34 a
-rw-rw-rw- 1 root sys 247 Jul 15 09:57 c
-rw-rw-rw- 1 root sys 32 Jul 15 09:23 d
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 04:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 04:29 PM
07-14-2004 04:29 PM
Re: cp
ll | grep "Jul 15" | tr -s ' ' | cut -f9 -d ' '
it would shows
c
c
Can you tell me, then how the command to copy c and d to another directory ? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 04:38 PM
07-14-2004 04:38 PM
Re: cp
cp `ll | grep "Jul 15" | tr -s ' ' | cut -f9 -d ' '`
or
cp `ll | grep "Jul 15" | awk '{ print $9 }'` /directory of destination/*
or
echo cp `ll | grep "Jul 15" | awk '{ print $9 }'` /directory/ | sh
But find command syntax from tulley is effective one for this.
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 04:42 PM
07-14-2004 04:42 PM
Re: cp
Try using:
# ll | grep " Jul 14 " | awk '{print $9 }' | cpio -pmdv
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 04:47 PM
07-14-2004 04:47 PM
Re: cp
$ for i in `ll | grep "Jul 14" | awk '{print $9}'`
> do
> cp $i /newdir
> done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 05:03 PM
07-14-2004 05:03 PM
Re: cp
cp `ll
If you are going to do from any directory,give the input directory in the ll command.
you can get the files with the permission too with $1 option in the awk checking.
Regards,
Muthukumar.