MIT-Curricular/OS/bash/progcheck/solenhanced.sh

18 lines
270 B
Bash
Raw Normal View History

#!/bin/bash
folder="$@"
for j in $folder
do
echo "Checking $j"
x=`find "$j" -type f -iname "[!aeiou]*"`
for i in $x
do
echo "$i"
done
done
# This script takes a folder name as a CLI argument and then lists all files that do not begin with a vowel (in filename)