So far my searching hasn't turned up anything useful. Is there a quick way to increment a letter variable in a bash script?
I am creating a script to automatically transfer files in a given directory by creating a dated folder (mkdir $(date -I), copy files into new folder and create a .log of the files using the output of 'ls'. The issue here is that in order to stick to an existing convention, more than one transfer in the same day has a '-a' or '-b' appended to the directory and .log file names. I've not been able to come up with a clever way to automatically increment the letter to be appended, for example if '-a' has already been taken for a given day. It's not the checking part that I have trouble with, it's incrementing a _letter_. Before I create some ugly monstrosity of a loop to do this, can anyone offer any hints? Scripting has never been my strong suit...I can read scripts quite well, but tend to "complexify" simple tasks due to lack of experience. -- Linux SxS [http://sxs.webhop.net] _______________________________________________ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.