aboutsummaryrefslogtreecommitdiff
path: root/recipes-demo/de10-nano-fftsw-apps/files/duplicate_x128.sh
blob: fce4c51589a7c489f5d32b0364036dac96b07b5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

[ $# -eq "1" ] || {
	echo "" 1>&2
	echo "USAGE: ${0} <input file>" 1>&2
	echo "" 1>&2
	exit 1
}

[ -f "${1}" ] || {
	echo "" 1>&2
	echo "ERROR: file does not exist: '${1}'" 1>&2
	echo "" 1>&2
	exit 1
}

for I in {1..128}
do
	cat "${1}"
done

exit 0