insert file?
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Wed Nov 28 20:40:15 UTC 2007
Alan Cox wrote:
>> head -n 3 file;who;tail -n $(echo "$(wc -l file | cut -d " " -f 1) -3" |bc) file
>
> ( head -n3 file; who; tail +3 file) > newfile 2> errors
>
> Much easier ;)
>
I think you need to change "tail +3" to "tail -n +3" or tail will
treat +3 as a file name.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20071128/52ae1cdf/attachment-0001.bin
More information about the users
mailing list