Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- count() {
- if [ -f $1 ]
- then {
- echo "so dau cach: "
- egrep -o " " $1 | wc -l
- echo "so ky tu nguyen am: "
- egrep -o "[aeiouy]" $1 | wc -l
- echo "so dong"
- wc -l $1
- }
- else {
- echo 'file khong ton tai'
- }
- fi
- }
- echo 'nhap file: '
- read file
- count $file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement