On Tue, 23 Apr 2002, krishna wrote:
> how can list only the files in a directory and not the directory,i.e.,
> the opposite ls -d */(LOST #23)
for i in *; do [ -d $i ] || echo $i; done
of course, you'd have to do a little more than that to get it into
columns, and if you want dircolors and stuff like that, but it's what
you want if all you want is to pipe the output to something else.
--
You know, some of these stories are pretty good. I never knew mice
lived such interesting lives.
-- Homer Simpson
Itchy & Scratchy & Marge
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help