| « OTRS -> Bugzilla ? | Whats the Redhat[tm] name doing on Oracle's site » |
generating date range on the shell
Trying to generate a date range on the shell ? try something like this :
#!/bin/bash
for f in `seq -f"%f" 1153699200 86400 1164067200 `
do
date -d "`python -c \"import time; print time.ctime(${f})\"`" +%Y%m%d
done
--
Karanbir Singh { http://www.karan.org/ }
Feedback awaiting moderation
This post has 1 feedback awaiting moderation...