aboutsummaryrefslogtreecommitdiff
path: root/recipes-demo/de10-nano-fftsw-apps/files/duplicate_x8.sh
blob: 0a9ef6918b5cb927ac1b39899e930b9f3a826ba9 (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..8}
do
	cat "${1}"
done

exit 0