oh-my-git/scripts/take

13 lines
197 B
Text
Raw Normal View History

#!/usr/bin/env bash
echo "Taking $1!"
mkdir -p ~/inventory
mv "$1" ~/inventory
X=50
for file in ~/inventory/*; do
echo "x = $X" > $file
echo "y = 50" >> $file
X=$(expr $X + 100)
done