Skip to content

Instantly share code, notes, and snippets.

@PoisonousJohn
Last active February 11, 2016 13:20
Show Gist options
  • Save PoisonousJohn/2b51e03c0a8560670cd0 to your computer and use it in GitHub Desktop.
Save PoisonousJohn/2b51e03c0a8560670cd0 to your computer and use it in GitHub Desktop.
convert windows-like network path to smb linux path
#!/bin/sh
printf "%s" $1 | sed -n -E 's,^(\\)+,smb://,gp' | sed -n 's,\\,/,gp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment