The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-04-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Hi happyv,
You are using the 'll' command, which will give you a long listing. For example, if you run 'll a.out', then your output will be
Code:
-rwxrwxr-x   1 root     other       6532 Sep 15 11:54 a.out
When you cut the first 17 characters from this, what you get is
Code:
-rwxrwxr-x   1 ro
.

Instead of ll, use the ls command. This will just output the filenames and your cut command will get the 17 column filename correctly.