First commit

This commit is contained in:
2018-03-13 08:04:28 +01:00
commit 196a7d2af6
32 changed files with 33836 additions and 0 deletions

11
arguments.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
echo "Last argument only (works with bash/ksh only): ${@: -1}"
echo "Last argument only (works with bash 3.x+ only): ${!#}"
echo "Last argument only (works with bash 3.x+ only): $BASH_ARGV"
echo "Last argument only (works with bash 3.x+ / ksh only): ${@:$#}"
echo "Last argument only (works with bash 3.x+ only): ${BASH_ARGV[0]}"
echo -n "Last argument only (portable version): "
for i in $@; do :; done
echo "$i"