Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-04-2009, 02:15 PM   #16
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910

Originally Posted by jschiwal View Post
Untested, but using -ls in find may be faster than an external command.
Wow - it is! Substantially. 2m7s with -exec ls as opposed to 8s
with -ls ...

Originally Posted by jschiwal View Post
Also, the format of the external ls command depends on $LS_OPTIONS, aliasing and sometimes the locale (for numbers). Another problem can turn up if in another part of the script, IFS is changed and ls is aliased. Aliased commands will fail if the space doesn't separate the command from the arguments. Using /bin/ls explicitly would prevent the last two potential problems.
I didn't do any testing, but the man-page suggests it uses
ls' -dils standard formatting for the output, which I'd
interpret to have the same dependence on locale?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find files containing specific text? SurfTurtle Linux - Newbie 7 01-05-2008 06:57 AM
How to find those files having specific string??? saeed Red Hat 4 07-19-2006 12:50 PM
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 01:45 AM
how to find a specific file over several *.tgz files eeyoree Slackware 6 08-09-2004 01:37 AM
Find files, directories that are own by specific user mikeshn Linux - General 2 02-12-2004 04:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration