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