- /tmp/data.db-2 contents:
- 10 11/05/2009 13:17:16
- 10 11/05/2009 13:17:24
- 10 11/05/2009 13:47:18
- 10 11/05/2009 13:47:28
- 10 11/05/2009 14:08:28
- 10 11/05/2009 14:09:04
- #My script
- #!/bin/bash
- for entry in $(cat /tmp/data.db-2)
- do
- echo $entry $entry $entry
- done
- Notice that the echo $entry $entry $entry to test if it can display the variable 3 times... but when in line that contains TIME.. it only appears once.
Posted by c0l2e on Fri 6th Nov 10:59
download | new post
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.