Useful Regex Expressions - malkovich/bibanon GitHub Wiki
for file in *.mdwn ; do mv $file echo $file | sed 's/\(.*\.\)mdwn/\1md/'
; done
for file in *; do [ -f "$file" ] && ( mv "$file" "$(echo $file | sed -e 's/_/-/g')" ); done
find . -type f -exec mv '{}' '{}'.mediawiki ;
find . -type f -exec mv '{}' "$(echo '{}' | sed -e 's/ /-/g')" ;
for f in *htm ; do mv $f basename $f htm
html; done
for e in *; do mv "$e" "echo $e | sed -e 's/\ /_/g'
.mp3"; done
f: ''(.+)'' r: \1
Replace all broken mediawiki links with fixed wikilinks (Currently does not detect this:) 4chan Threads -> 4chan)
ex. 4chan
f: [(\w+)](/\w+) r: \1
f: [/(\w+)/](//\w+/) r: /\1/
f: =+ (.+) =+ r: ## \1 ##
f: \n: r: \n>