Post Reply 
splitting multi-tags but need some help
13-01-2019, 15:27
Post: #5
RE: splitting multi-tags but need some help
just for the sake I might forget about it in 2 years time ... or in case some others have a similar problem:

Code:
egrep 'GENRE=' /volume1/public/alltags.txt | sed 's/\r//g;s/^/\n@/ p;s/GENRE=//;s/\n@/=GENRE=/;s/; /\n+GENRE=/g' >/volume1/public/tagupdate.txt

seems to do the trick. Don't ask me if it could have been done lots easier, I'm definatly more into VisualStudio but bash'ing with crypto-alike linux commands.

The separator in here is "; " just in case someone wants to try while using a differnt one. (once used in the command)
the path&filename must get adjusted to your needs.
And a small misery remains, it simply processes all genres found within the alltags file. One could surely extend this command by filtering out the ones not containing any delimiter since these could get skipped. But I'm too lazy to do this right now.

And one could easily fire this command through plink.exe just in case one sits in front of a windows machine.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: splitting multi-tags but need some help - aliasname - 13-01-2019 15:27

Forum Jump:


User(s) browsing this thread: 1 Guest(s)