Compare files
Asked by
peter
Hello
I've a question and I would be glad if you can help. Thanks.
I've created a shell script with the following commands:
#!/bin/bash
cd /root/Own_Data
find . | sort > /tmp/Hdisc.txt
cd /media/
find . | sort > /tmp/USB.txt
cd /tmp
diff Hdisc.txt USB.txt
echo
read
This script works. If i create a new file on the harddisc or if I delete a file on the harddisc I'll get the notification.
But if I update a file on the harddisc I don't get a notification.
What do I have to do to get a notification if I update a file? Thanks.
Peter
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu kdiff3 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- peter
- Solved:
- Last query:
- Last reply:
To post a message you must log in.