Skip to content

Instantly share code, notes, and snippets.

@noondreams
Created April 3, 2014 08:44
Show Gist options
  • Save noondreams/9950744 to your computer and use it in GitHub Desktop.
Save noondreams/9950744 to your computer and use it in GitHub Desktop.
#!/bin/bashi
count=0;
for i in $(cat /home/donkarlo/.profile); do
count=$((count+1))
echo "Word $count ($i) contains $(echo -n $i | wc -c) characters"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment