artimys
4/14/2017 - 6:05 PM

Bash Scripting

Scripting language to automate commands in terminal. Mac and Linux

#!/bin/bash

# tab space matters, even inside the while square brackets
# to run file: bash loop.bash OR sh loop.sh(I think)

f=77
while [ $f -le 127 ]
do
	echo "test: $f"
	touch "_filters_$f.html.erb"
	((f++))
done