On Mon, 2005-10-24 at 20:53, Ronan McGlue wrote:
philip once again thanks for gettin back...
I can see a slight <dammit just hit my send macro by accident :S >
discrepency in this as my distro Slamd ( which your right in thinking is
just a 64bit version of slackware ) uses head -n $ instead of head -$....
when i use head -n i get "green" so i does work... ill try moddin the
source manually and see how that affects it.
If your version of "head" refuses to use the "-N" form (where N
is an integer), you can either install an older alternate version,
cook up a little script to translate the arguments or do a manual
replacement. Something of the form:
find . -name "*.sh" -exec egrep -iH "head -[1-9]" {} \;
can be useful, in order to identify the required files (kudos to
Kimberly). You'll probably need to do the same thing for the
"tail" command too, as they are normally a matched pair.