A good[ish] website
Web development blog, loads of UI and JavaScript topics
This post shows how to redirect an output of a command, or static text, into a file.
Print string into a file:
$ touch foo.txt
$ echo "hello" > foo.txtOr append with the double redirection operator:
$ echo "hello" >> foo.txtAppend command output into a file:
$ ls >> foo.txtcat it, to see if it worked:
$ cat foo.txtThinking of a real world example, one that comes to mind is to add fish to your available shells:
$ which fish >> /etc/shellsYou can also pipe into the tee command:
$ which fish | tee ./foo.txtUse the -a flag to append:
$ which fish | tee -a foo.txtThis command will output file names separates by a comma:
$ ls -1 | paste -sd "," -
foo.txt,bar.txt,baz.txtIt breaks down to:
-1-s-d-Just change the comma to whatever you like:
$ ls -1 | paste -sd "\n" - > foo.txtIf you want to limit the results, globs can be used in normal fashion. This lists only jpg files:
$ ls -1 *.jpg | paste -sd "," - > jpegs.txtOr jpgs and pngs:
$ ls -1 *.{jpg,png} | paste -sd "," - > bitmaps.txtA super primitive receipt management system. Name your receipts in this format:
yyyy-mm-dd,recipient,item,price,reference,.extAn example file might look like this:
2014-01-25,DigitalOcean,10,server,165496-21,.pdfThen print them out into a file:
$ ls -1 *.pdf | paste -sd "n" - > receipts-2015.csvThen open it up in spreadsheet application of some sort.

Comments would go here, but the commenting system isn’t ready yet, sorry.