skip to main
|
skip to sidebar
Unix Shortcuts and Tips
SED to append a string to each line of a file
cp test* /home/mydirectory/files
sed "s/$/|`head -1 test.dat.20080917233024`/g" test.dat.20080917233024 > new_test.dat.20080917233024
sed '1d;$d' new_test.dat.20080918233023 > test.dat.20080918233023
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Pratik Ajmera
View my complete profile
No comments:
Post a Comment