The UNIX and Linux Forums  


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 -->
  #6 (permalink)  
Old 02-11-2009
phudgens phudgens is offline
Registered User
  
 

Join Date: Feb 2009
Location: Denver
Posts: 40
I'm getting the error message: Unknown user: VERSION

The following is the first line of my file:
~VERSION

Some of the lines in my file begin with a tilde. Is that causing a problem? Also I'm setting i=100 since what I'm after is in the top 100 lines of an otherwise very long file.

set LASInputFile = `ls *.[Ll][Aa][Ss] | head -1`
echo $LASInputFile
set j=1
while ($j <= 100)
set line=`cat $LASInputFile | head -$j | tail -1`
@ j = $j + 1
echo $line
end

Thanks for the help,

Paul H.