Posts Tagged ‘bash’

Linux: Add a folder to the PATH

I had to compile a separated version of python to run some software without remove the current version that is dependent of other applications inside the server. When I tried to install some other dependent libraries of this version of python, It was not found because binary folder was not in the path. To add…

Read More

Rename files in Bash with Regular expresions

Sometimes It’s necessary to rename files following some patterns. Do this task manual is a long task, if you thousand of files. For this reason, I use rename command: Debug and preview: $ rename’REGULAR EXPRESSION’ files -n Execute: $ rename’REGULAR EXPRESSION’ files Some of the most common expressions I use are: Convert filename to lowercase:…

Read More