Sample Header Ad - 728x90

sed inline not working to modify XML-style input

-1 votes
3 answers
138 views
the problem is that I cannot put the complete command on a line with SED, I had already done it but with those file it does not work: my exemple : Documents/time/text1 //2X slash + 2 words to remove !! Commun/text2 //1X slash to remove + 1 words to remove Current/text3 //1X slash to remove + 1 words to remove Why does this code not work in line ?
sed 's/Documents//g' | sed 's/time//g' | sed 's/Commun//g' | sed 's/Current//g' | sed 's/Current//g' | sed '//s|/||' | sed '//s|/||' tracklist.txt > newtracklist.txt
Asked by Allan Tori (47 rep)
Feb 27, 2024, 08:00 PM
Last activity: Mar 24, 2024, 10:06 PM