created sep dirs for hw/labs, write lab 5
[assignments.git] / assgn2 / assgn2-2.sh
1 #!/bin/sh
2
3 echo "cd'ing to root directory"
4 cd /
5 ls -lah | grep bin
6 echo "searching for file 'cpp' only one dir deep and displaying its file type.."
7 find . -maxdepth 1 -type f -name cpp -exec file {} \;
8 echo "printing the first 160 bytes of it in hex.."
9 find . -maxdepth 1 -type f -name cpp -exec xd {} \; | head -c 160