Oh the power of sed
Here is how to remove the first certain number of characters
sed 's/^.........//' test2 > test3 where each . is a character.
also
cut -c10- test2
one way to cut the back is
rev filename | cut -b 2- | rev
which reverses the file, cuts the first two (which is the back) and then reverses it back
or you can use
cut -b 1-2 --complement bazaar.txt
this cuts from 1 to 2 (or the first two here) so if it was 5-13 it would cut the 5th to the 13th
Thursday, August 21, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment