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