AAE-CNAS-Labs/Topic-1/test.sh

8 lines
159 B
Bash
Raw Normal View History

2021-03-03 15:45:33 +01:00
#!/bin/bash
2021-03-03 16:32:13 +01:00
rm -f old_file new_file;
echo "QWERTYUIOP" > old_file;
gcc -Wall main.c -o cp;
./cp old_file new_file;
chmod +rw new_file;
diff old_file new_file;