5 name
=$
(echo "$@" |
sed 's/\s\+/-/g');
9 timestamp
=$
(date +'%F--%H-%M-%S');
10 directory
="$HOME/x/$timestamp--$name";
11 mkdir
-p "$directory";
13 printf '# %s\n' "$name" > README
;
16 git commit
-m 'Initial commit' >&2
19 echo "Please give the experiment a name, as the first argument.";
This page took 0.074 seconds and 4 git commands to generate.