Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost bash-scripting]$ cat script2b
- #!/bin/bash
- . colors
- echo the color is $COLOR
- [student@localhost bash-scripting]$ cat colors
- COLOR=pink
- [student@localhost bash-scripting]$
- [student@localhost bash-scripting]$ cat script9b
- #!/bin/bash
- [ -z $1 ] && echo you have to provide an argument && exit 11
- echo the argument is $1
- [ -f $1 ] && echo it\'s a file || echo $1 is not a file
- #######
Advertisement
Add Comment
Please, Sign In to add comment