- Log in to post comments
#!/bin/bash
FILE=/tmp.$$.out
for i in $(ls); do
echo ${i:0:1} >> ${FILE}
done
cat ${FILE} | sort | uniq
rm ${FILE}
#!/bin/bash
FILE=/tmp.$$.out
for i in $(ls); do
echo ${i:0:1} >> ${FILE}
done
cat ${FILE} | sort | uniq
rm ${FILE}