Advertisement
ria8246

[OS] 7. házi -- egy feladat

Mar 30th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. file1=$1;
  4.  
  5. if [[ -f $file1 || -h $file1 ]];
  6.     then
  7. #       echo ok
  8.  
  9. #    -Ha a megadott parameter fajl, akkor
  10. ##-listazza ki hosszu formatumban,
  11.     ls -l $file1;
  12. ##-irassa ki a standard outputra egymas ala, hogy hany sort, szavat, es karaktert tartalmaz a fajnev1 nevu fajl (kulon sorba kell a kiiratas).
  13.     cat $file1 | wc -l;
  14.     cat $file1 | wc -w;
  15.     cat $file1 | wc -c;
  16.  
  17.     else
  18.         echo ERROR
  19. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement