Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ass 1_10
- lab@ubuntu:~$ cat twofiles.sh
- echo "enter the file name"
- read first
- echo "enter the second file name"
- read second
- if [ -e $first ]
- then
- if [ -e $second ]
- then
- cat $second >> $first
- else
- cat $first >> $second
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement