Slugifying Filenames

by Andreas Knöpfle 26 days ago
Quickly make filenames in a folder lowercase and remove whitespaces

I just found to quick commands that help when renaming files to something that is nicer for git to use.

Lowercasing all files in a directory:

ls | while read upName; do loName=`echo "${upName}" | tr '[:upper:]' '[:lower:]'`; mv "$upName" "$loName"; done


Removing spaces:

for f in *\ *; do mv "$f" "${f// /_}"; done


Just dropping this here for future purposes. I know it probably can be done a lot cleaner and in one step, but it works :)



Discover the internet of islands and sail through the online ocean.

asdf Version Manager & Postgres UUID

Compiling Postgres with UUID to use in asdf

Lombok Impressions

Our trip to the Indonesian island Lombok in October 2015

Deploying Phoenix app with dokku-alt and Dockerfile

My experiences in deploying a Elixir Phoenix app on my dokku-alt instance.

Moved to netcup and dokku-alt

How i moved this page to run on netcups vhosts with dokku-alt Docker instances