Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- if [ $# -ne 1 ]
- then
- echo "Input file path."
- exit
- fi
- if [ -f $1 ]
- then
- echo "Numarul de cuvinte din fisierul $1: `wc -w $1 | cut -f 1 -d ' '`"
- echo "Numarul de caractere din fisierul $1: `wc -m $1 | cut -f 1 -d ' '`"
- fi
Add Comment
Please, Sign In to add comment