I’ve been running into a lot of cases where I need to build intermediate directories for a path. Apparently, the correct option is -p mkdir -p dir/tree/to/make From the mkdir man page: -p Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already exist. On […]
Tag Archives: shell
Script to Change the Title of Your Terminal Window
I decided to create a small bash script to change the title of my current terminal window in bash on my Mac: change_title: #!/bin/bash echo -ne “33]0;” $* “07” The script then runs as: change_title Your title goes here.
rush: the ruby shell
rush. rush is a replacement for the unix shell (bash, zsh, etc) which uses pure Ruby syntax. Grep through files, find and kill processes, copy files – everything you do in the shell, now in Ruby. Install rush If you’re running windows and have Ruby installed, go to Start->Ruby-{version}->RubyGems->RubyGems Package manager and type in “gem […]