You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Write a shell script that accept two file names and check if both exists.If the second filename exists,then the contents ofthe first filename should be appended to it
echo "enter the file name 1"
read a
echo "enter second file name"
read b
(ls $a.txt && echo file1 exist && p=y && echo $p)|| echo file1 does not exist
(ls $b.txt && echo file2 exist && q=y && echo $q)|| echo file2 does not exist