pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

The CentOS Pastebin! View Help

Posted by c0l2e on Fri 6th Nov 10:59
download | new post

  1. /tmp/data.db-2 contents:
  2. 10 11/05/2009 13:17:16
  3. 10 11/05/2009 13:17:24
  4. 10 11/05/2009 13:47:18
  5. 10 11/05/2009 13:47:28
  6. 10 11/05/2009 14:08:28
  7. 10 11/05/2009 14:09:04
  8.  
  9.  
  10. #My script
  11.  
  12. #!/bin/bash
  13.  
  14. for entry in $(cat /tmp/data.db-2)
  15. do
  16.   echo $entry $entry $entry 
  17. done
  18.  
  19.  
  20. 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.

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.


Use syntax highlighting

To highlight particular lines, prefix each line with ~~


Remember my settings