Advertisement
Guest User

ass 1_10

a guest
Sep 2nd, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ass 1_10
  2. lab@ubuntu:~$ cat twofiles.sh
  3. echo "enter the file name"
  4. read first
  5. echo "enter the second file name"
  6. read second
  7.  
  8. if [ -e $first ]
  9. then
  10. if [ -e $second ]
  11. then
  12. cat $second >> $first
  13. else
  14. cat $first >> $second
  15. fi
  16. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement