mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-08-05 18:45:27 +00:00
Create shiftparameters.sh
This commit is contained in:
14
shiftparameters.sh
Normal file
14
shiftparameters.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
#Purpose: Shifting positional parameters automatically
|
||||
#Version:1.0
|
||||
#Website: https://arkit.co.in
|
||||
#Created Date: Tue May 22 22:55:50 IST 2018
|
||||
#Modified Date:
|
||||
#Author: Ankam Ravi Kumar
|
||||
# START #
|
||||
set `date`
|
||||
echo "Count $#"
|
||||
echo "$1 $2 $3 $4 $5"
|
||||
shift 2
|
||||
echo "$1 $2 $3 $4 $5"
|
||||
# END #
|
Reference in New Issue
Block a user