14 lines
180 B
Bash
Executable file
14 lines
180 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
fill=$1
|
|
shift
|
|
|
|
while (( "$(expr $#)" ))
|
|
do
|
|
echo ${fill} >> $1
|
|
for i in $(cat $1) ; do echo $i ; done | sort | uniq > test
|
|
cp test $1
|
|
shift
|
|
done
|