#Linux file renaming rule

1 messages · Page 1 of 1 (latest)

olive thorn
#

regex could most definitely filter for the text that you want removed from the filename but idk how to apply it to actually rename the files

olive thorn
#

it's fairly easy i just dont know where i can find the docs for it

#

man sed has some stuff if u can make sense of it

rugged quiver
#

You can use a regex tester online https://regex101.com/

If you don’t know regex syntax it’s all easily Google

Sed will also accept regex (99.9999% confident anyway)

regex101

Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.