On 6/5/08, atreux <[EMAIL PROTECTED]> wrote:
> he can adjust the character range as it applies to his `ls -l` listing...

flexibility must be always one of the important rules to avoid  bugs
in the program...


> of course, the `find` command is much better as the parameters don't need to
> be changed depending on circumstances.
>
> still, `cut` is needed to remove the './' that begins each line... :-)

yup you still need another way to extract the filename as "find" alone
cant do that...


> find . -maxdepth 1 -type f | cut -c3-300

a little fine tuning there :->

find . -maxdepth 1 -type f | cut -c3-

it instruct "cut" to take characters starting from the third upto the
rest of it as "find" guarantees you that starting the 3rd character is
the start of a filename...

fooler.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to