The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Parameter from result of a script
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Parameter from result of a script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
12-03-2005
BOFH
Registered User
Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Hmm, seems like an extra hard way to do it.
FILE=`head -1 [filename]
LINES=`wc -l [filename] | awk '{print $1}'`
tail -`expr "$LINES" -1` [filename] > [filename].tail
mv [filename].tail [filename]
Carl
BOFH
View Public Profile
Visit BOFH's homepage!
Find all posts by BOFH
Find BOFH's past nominations received
Find BOFH's present nominations given