sed works with regular expressions and you seem aware you need to escape some characters (e.g. One way is to use the "rm" command. The best answers are voted up and rise to the top, Not the answer you're looking for? This simply matches .tar.gz resulting in: Its worth mentioning that neither Bash shortest nor longest match supports regular expressions. Hello,I want to remove the third, fourth and fifth character of each line, how to do it ?Thank you in advance. ^ no, this will not work on multiple lines. Did anybody use PCBs as macro-scale mask-ROMS? What does it mean that an integrator has an infinite DC gain? How many numbers can I generate and be 90% sure that there are no duplicates? Remove Strings from files using sed and grep, dest.collectfasttracks.com/y.js'>@, dest.collectfasttracks.com/y.js'>