The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-09-2008
gjithin gjithin is offline
Registered User
 

Join Date: May 2008
Posts: 16
my script is

line=$(awk '{if(substr($0,1,1)!="#" &&
substr($0,1,1)!=";" &&
substr($0,1,1)!=" " &&
substr($0,1,1)!="/" &&
substr($0,1,1)!="*" &&
substr($0,1,1)!="\\" &&
length($0)!=0)
{print $0}
}' filename

This works fine when i login as super user but it does not work with other user and show error.

I am still geting the error

....ksh[line]: awk: not found

ls -l file name gives
-rwxrwxrwx 1 jithin other 38388 date filename

ls -ld folder gives
drwxrwxrwx 2 jithin other 512 date foldername
Reply With Quote