mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 19:00:51 +00:00
16 lines
265 B
Bash
Executable File
16 lines
265 B
Bash
Executable File
#!/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
|