|
|
@ -23,13 +23,13 @@ sed '/Name : John/,$d' employeesData.txt > temp.txt |
|
|
|
mv temp.txt employeesData.txt |
|
|
|
|
|
|
|
# backup files |
|
|
|
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c; do |
|
|
|
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c _file_information.h; do |
|
|
|
cp "$file" "$file.bak" |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# remove 'src/' |
|
|
|
for file in employeeLogin.c createEmployeeAccount.c; do |
|
|
|
for file in employeeLogin.c createEmployeeAccount.c _file_information.h; do |
|
|
|
sed -i 's/src\///g' "$file" |
|
|
|
done |
|
|
|
|
|
|
@ -39,12 +39,12 @@ gcc mainMenu.c error.c createEmployeeAccount.c showGeneralInfoEmployee.c employ |
|
|
|
rm main |
|
|
|
|
|
|
|
# restore backups |
|
|
|
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c; do |
|
|
|
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c _file_information.h; do |
|
|
|
cp "$file.bak" "$file" |
|
|
|
done |
|
|
|
|
|
|
|
# remove backups |
|
|
|
for file in employeeLogin.c.bak mainMenu.c.bak createEmployeeAccount.c.bak; do |
|
|
|
for file in employeeLogin.c.bak mainMenu.c.bak createEmployeeAccount.c.bak _file_information.h.bak; do |
|
|
|
rm "$file" |
|
|
|
done |
|
|
|
|
|
|
|