From: | Billy Holmes <billy@××××××.net> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Re: [OT] Bash scripting | ||
Date: | Fri, 11 Nov 2005 21:01:34 | ||
Message-Id: | 43750467.9000608@gonoph.net | ||
In Reply to: | [gentoo-user] Re: [OT] Bash scripting by Peper |
1 | Peper wrote: |
2 | > And one more thing, is there any smarter way to read one line of file then |
3 | > head -n x file|tail -n 1 ? |
4 | |
5 | if you know the line number from the top: |
6 | |
7 | sed -n ${line}p |
8 | |
9 | if you don't know the number from the top but from the bottom, then tail |
10 | | tail is your best bet... |
11 | -- |
12 | gentoo-user@g.o mailing list |