Skip to content

Instantly share code, notes, and snippets.

@breck7
Created February 1, 2010 17:06
Show Gist options
  • Save breck7/291822 to your computer and use it in GitHub Desktop.
Save breck7/291822 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo $1
newpath=$(echo $1 | sed 's|\\|/|g' | sed 's|:||g' | sed 's|^C|/cygdrive/c|')
echo $newpath
cd "$newpath"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment