Upload files to "OS/bash/Week3"

This commit is contained in:
Aadit Agrawal 2025-01-17 10:49:39 +05:30
parent 49b7d5d30c
commit e27e2c7837
5 changed files with 76 additions and 0 deletions

10
OS/bash/Week3/q2.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
echo "Which folder would you like to check?"
read folder
echo "Enter pattern/filename string to match"
read string
x=`find $folder -type f -iname "*$string*"`
for i in $x;do
echo "$i"
done