Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Five-weekends/UNIX-Shell/five-weekends.sh
Normal file
12
Task/Five-weekends/UNIX-Shell/five-weekends.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
echo "Creating cal-file..."
|
||||
echo > cal.txt
|
||||
for ((y=1900; y <= 2100; y++)); do
|
||||
for ((m=1; m <= 12; m++)); do
|
||||
#echo $m $y
|
||||
cal -m $m $y >> cal.txt
|
||||
done
|
||||
done
|
||||
ls -la cal.txt
|
||||
|
||||
echo "Looking for month with 5 weekends:"
|
||||
awk -f 5weekends.awk cal.txt
|
||||
Loading…
Add table
Add a link
Reference in a new issue