Skip to content

Commit

Permalink
Update shi
Browse files Browse the repository at this point in the history
  • Loading branch information
nykfank authored Jan 6, 2021
1 parent 1648cee commit 4769032
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions shi
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
#!/bin/sh
echo $1 >>shift.txt
#!/bin/bash

num=$2

if [ $# -eq 1 ]; then
num=1
fi

for (( c=1; c<=$num; c++ ))
do
echo $1 >>shift.txt
done

0 comments on commit 4769032

Please sign in to comment.