Skip to content

Instantly share code, notes, and snippets.

mkdir NITW NITW/BTECH NITW/MTECH NITW/MCA NITW/BTECH/CSE NITW/MTECH/CSIS
touch NITW/BTECH/p1.txt NITW/MTECH/CSIS/Hello.txt
chmod 777 NITW/MTECH/CSIS/Hello.txt
tree NITW
grep -v -i "that" NITW/BTECH/p1.txt > tempfile && mv tempfile NITW/BTECH/p1.txt
grep -E '[[:digit:]]{5}' NITW/MTECH/CSIS/Hello.txt
@mohdfahad12328
mohdfahad12328 / test.sh
Last active October 24, 2021 08:20
bash sript for password intensity checking
#!/bin/bash
echo "Enter the password"
read PASSWORD
COUNT=0;
CHAR=$(echo -n "$PASSWORD" | wc -c)
if [ $CHAR -lt 15 -a $CHAR -gt 8 ]
then
((COUNT+=1))
fi