As a regular unix user I am forever programming on the command line or writing scripts so that I first write a load of data to a file to read from. In the end I am always left with a bundle of .txt, .tmp which is what I usually call them. As a basic programmmer I was wondering is there a more cleverer way of writing data temporarily to a place of which can be used as reference for my script or next lot of commands??? For example,
du -ks * >> disk.log
......then I go on to using my scripts to manipulate or read in this file
mktemp -d is only available in the GNU version. Getting a name from mktemp and then manually creating that directory works across all POSIX compliant systems.