Skip to content

Instantly share code, notes, and snippets.

@halloleo
halloleo / create-unique-new-daystamped-file-snippet.sh
Last active August 29, 2015 13:59
create unique new day-stamped file from a given file stem and extension
#!/bin/bash
# bash snippet:
# create unique new day-stamped file from a given file stem and extension
#
# note the for-loop fto find the first unique (=non-existent) file with
# a given name
#
fnstem="a-file" # here goes the file stem before unifiying