The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 03-18-2005
jolok jolok is offline
Member
 

Join Date: Mar 2005
Posts: 64
How about as an alias in .cshrc ?

I've put this line as an alias in .cshrc:

alias dirlist ls -l | awk '/^d/ {print $9}'

but I get this:

netmin@kenny:/home/netmin-->> dirlist
drwx------ 5 netmin netmin 512 Mar 13 04:26 Maildir
drwxr-xr-x 2 netmin netmin 512 Mar 15 18:30 bin
drwxr-xr-x 2 netmin netmin 512 Mar 15 18:00 cdrom
drwxr-xr-x 2 netmin netmin 512 Mar 15 07:37 conf
drwxr-xr-x 2 netmin netmin 512 Mar 12 09:50 doc
drwx------ 2 netmin netmin 512 Mar 13 12:43 mail
drwxr-xr-x 4 netmin netmin 512 Mar 13 20:16 mailconf

What do I need to do to get the {print $9} to take ?
Thanks in advance.

Jolok
Reply With Quote