mise au point
This commit is contained in:
15
script.sh
15
script.sh
@@ -1 +1,16 @@
|
||||
#! /bin/bash
|
||||
|
||||
set -u
|
||||
set -e
|
||||
|
||||
#today=`date "+%d"`
|
||||
today=$(date "+%d")
|
||||
|
||||
tmrw=$(($today + 1))
|
||||
ytd=$(($today - 1))
|
||||
mkdir -p /tmp/$(hostname -s)
|
||||
cd /tmp/$(hostname -s)
|
||||
mkdir -p $today $tmrw $ytd
|
||||
|
||||
# ou en une seule ligne:
|
||||
mkdir -p /tmp/$(hostname -s)/{$(($(date "+%d")-1)),$(($(date "+%d")-2)),$(date "+%d")}
|
||||
Reference in New Issue
Block a user