![]() |
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 a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 10-25-2008 12:37 PM |
| find and replace command in one line using one command | vasikaran | UNIX for Dummies Questions & Answers | 10 | 08-20-2008 10:40 AM |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 08:12 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 06:47 AM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 06:38 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help run ls command along with find command
Hi,
I want to run ls -lrt command along with find command. I want to get the list of files with timestamp, owner, group and permissions for the files larger than 1024k. I tried the below command, but it displays only the file names. ls -lrt | find . -name "*.*" -size +1024k -print Any help Thanks |
|
||||
|
Thank you too :)
Thank you too - I'm just becoming more familiar with Linux and I was looking for something like this off and on for awhile
![]() oh btw - When you send in the -exec command with the ls -(options) command, why do you need to add the "{} \;"? |
|
||||
|
Quote:
You could even have multiple -exec actions: Code:
find . -type f -exec ls -l {} \; -exec touch {} \;
Having said that, -exec is usually the last thing you do, and the file name of the found file is usually the last thing in that command line, so it does seem a bit redundant in those cases. A common exception would be the mv command where the found file is usually the thing you want to move. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| find, find -exec |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|