In a long text file listing dups-23Mar16.listing I want to delete lines
beginning, for example, with
.local. Here are some lines in this file:
Desktop/Reisen/Italien/VillaLaBandita/images-hpz-urlaub/cimg0429.jpg Desktop/Tiere/Italien/VillaLaBandita/images-hpz-urlaub/cimg0429.jpg .local/share/files/eksteuer/ekst.odt
From outside of this file I can do this with the command
sed -e '/^\.[a-z]/d' dups-23Mar16.listing
and in a vi buffer by
:%!sed -e '/^\.[a-z]/d'
If I want to remove the lines beginning with Desktop as well I succeed with
:%!sed -e '/^Desktop/d'
How can I combine both commands into one? I tried
:%!(sed -e '/^\.[a-z]/d';sed -e '/^Desktop/d')
but this does not work. What is the solution?