Thread: sed replace string of line
hi,
have file lots of lines that
and want remove until "|".code:randomstring | randomstring
ideas how sed/awk?
tia!
been while, not it?
test.txt:
code:randomstring | randomstring randomstring | randomstring randomstring | randomstring randomstring | randomstring randomstring | randomstringi'm little forgetful on head twisting hieroglyphs of sed thoughcode:$ sed 's/.*\(|.*\)/\1/g' test.txt | randomstring | randomstring | randomstring | randomstring | randomstring
[edit] but
sed -i 's/.*\(|.*\)/\1/g' test.txt
'in place' editing
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk sed replace string of line
Ubuntu
Comments
Post a Comment