Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 29th, 2015
305
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
daterange
(
)
{
# outputs every date since last monday
c
=
0
until
(
(
$c
==
$1
)
)
;
do
date
-d
"last monday +
$c
day"
+
%
Y
%
m
%
d
c
=$
(
(
$c
+
1
)
)
done
}
daterange $
(
date
+
%
u
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 6.70 KB
Untitled
3 hours ago | 5.89 KB
client-main mortar and pestle not working
4 hours ago | 268.99 KB
server-main mortar n pestle not working
4 hours ago | 282.40 KB
Untitled
7 hours ago | 12.69 KB
Untitled
8 hours ago | 7.36 KB
pokemon
9 hours ago | 4.25 KB
Untitled
9 hours ago | 27.26 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!