This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |