MIT-Curricular/OS/bash/progcheck/sol.sh
2025-02-07 14:05:44 +05:30

14 lines
255 B
Bash
Executable file

#!/bin/bash
folder="$@"
echo "Checking $folder"
x=`find "$folder" -type f -iname "[!aeiou]*"`
for i in $x
do
echo "$i"
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)