mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 00:50:51 +00:00
16 lines
265 B
Bash
16 lines
265 B
Bash
|
#!/bin/bash --
|
||
|
|
||
|
tomorrow=$(date --date='tomorrow' +%Y-%m-%d)
|
||
|
|
||
|
while read row
|
||
|
do
|
||
|
holiday=$(echo "$row" | cut -d , -f 1)
|
||
|
if [[ "$holiday" == "$tomorrow" ]]
|
||
|
then
|
||
|
echo "$row" | cut -d , -f 2
|
||
|
exit 1
|
||
|
fi
|
||
|
done </home/bruno/.feriados
|
||
|
|
||
|
exit 0
|