Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 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