hey how u doing guys ... I'm a student @ EMU and taking a beginner Linux class and I have those two extra credit project that im struggling with so I hope to get some correction and help
write a shell script that will
1-prompt the user for a file name
2-check to see if the file exists
3-create the file if the file does not exist
4-then go back and repeat step 1 if the file doesn't exist
#!/bin/bash
if test -e filename
echo "the file is exist."
else
echo "the file is not exist."
echo "filename" > "filename1"
fi
==============================
the other script
create a shell script that will
1- prompt for four file names
2- combine all of the data in the first three files into the fourth one
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.
Please review the rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.