Skip to content

Instantly share code, notes, and snippets.

@slayerlab
Last active January 18, 2017 16:26
Show Gist options
  • Save slayerlab/9b4448cb2678dc8f0a283821b8a3f779 to your computer and use it in GitHub Desktop.
Save slayerlab/9b4448cb2678dc8f0a283821b8a3f779 to your computer and use it in GitHub Desktop.
bash/sh: "parameter expansion" testing
research@blockbit:~/Documents$ set -- jesus te ama
research@blockbit:~/Documents$ echo ${1:2:1}${1:1:1}${1:0:1}${3:0:1}${3:1:1}$' '${3:2:1}${2:0:1}${2:1:1}${1:3:1}${1:4:1}
sejam ateus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment