Changeset 30408 for other-projects
- Timestamp:
- 2016-03-15T20:19:51+13:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/expeditee-release-kits/process_incoming.sh
r30407 r30408 10 10 11 11 12 incoming_file=$113 14 12 # http://stackoverflow.com/questions/1401482/yyyy-mm-dd-format-date-in-shell-script 15 13 date=`date +%Y-%m-%d` 14 15 # code from Puka 16 # the file uploaded is the one with the latest timestamp 17 # ls -rt lists files by time, then get the last one 18 #incoming_file=$1 19 incoming_file=`ls -rt *$date* 2>/dev/null | tail -n 1` 20 echo $incoming_file 16 21 17 22 # arrays
Note:
See TracChangeset
for help on using the changeset viewer.