[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Bash command to output filenames with complete path?
- Subject: [ale] Bash command to output filenames with complete path?
- From: danscox at mindspring.com (Danny Cox)
- Date: 15 Aug 2002 07:29:12 -0400
Andrew,
On Thu, 2002-08-15 at 06:52, Andrew Grimmke wrote:
> alias M1="ls -R /home/andrew/mp3/ >
> /home/andrew/temp/mp3list ; mpg123 -@
> /home/andrew/temp/mp3list -V"
I don't think 'ls' can do it, but 'find' can. Try:
alias M1='find /home/andrew/mp3 | sort >/home/andrew/tmp/mp3list;
mpg123 -@/home/andrew/tmp/mp3list -V'
You don't really need to sort, since you're playing 'em randomly anyway,
but it makes the listing nicer if you wish to edit it. You'll probably
never see the slowdown either unless you have thousands of files.
--
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.
Danny
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.