skip to main
|
skip to sidebar
Shell Script Heaven
Thursday, 29 January 2009
Snippets of code
Ever wanted to get a line by specifying the line number?
This code does just that.
# awk 'NR==$line{print;exit}' $filename
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2009
(13)
►
February 2009
(6)
▼
January 2009
(7)
Snippets of code
Linux/UNIX: Find Out If File Exists With Condition...
Linux Script Test Conditions
Custom bashrc and profile with colour PS1
Mksysb backup shell script for Unix
Generating a random number / seed
First Post - Hello
DistroWatch.com: News
Loading...
HowtoForge - Linux Howtos and Tutorials -
Loading...
GNS Science - GeoNet: Recent New Zealand Earthquakes.
Loading...
Labels
Backup
(1)
case
(1)
date
(1)
function
(1)
myksysb
(1)
Restore
(1)
sed
(1)
Followers
No comments:
Post a Comment