Upload files to "OS/bash/Week4"

Signed-off-by: Aadit Agrawal <tech@aaditagrawal.com>
This commit is contained in:
Aadit Agrawal 2025-01-24 10:06:30 +05:30
parent 3d5dfd6481
commit 5b0eda8b4e
5 changed files with 108 additions and 0 deletions

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

@ -0,0 +1,10 @@
#!/bin/sh
echo "Deleteing the following files"
for file in "$@";do
echo "$file"
rm -i "$file"
done
echo "All files deleted successfully"