"Balaji N" <[EMAIL PROTECTED]> writes:

> On Wed, 2002-04-24 at 03:01, krishna wrote:
> > how can list only the files in a directory and not the directory,i.e., 
> > the opposite ls -d */(LOST #23)
> > TIA,
> > krishna
> dont know if a some option in ls exists, but easiest would be to do 
> 
> ls -l | grep -v ^d

A subtle variation on this one:

\ls  -F | grep -v /$

The good thing this can be used easiliy to get multi-column output as
well as with/without details like:

ls `\ls -F | grep -v /$` # for multi-column without details
ls -l `\ls -F | grep -v /$` # for with details

-- 
Life sans X sounds just as bad as life sans SeX.


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to