razvanth21

SO2

Oct 6th, 2018
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. if [ $# -ne 1 ]
  4. then
  5.     echo "Input file path."
  6.     exit
  7. fi
  8.  
  9. if [ -f $1 ]
  10. then
  11.     echo "Numarul de cuvinte din fisierul $1: `wc -w $1 | cut -f 1 -d ' '`"
  12.     echo "Numarul de caractere din fisierul $1: `wc -m $1 | cut -f 1 -d ' '`"
  13. fi
Add Comment
Please, Sign In to add comment