View Single Post
BluesLee's Avatar
Posts: 411 | Thanked: 1,105 times | Joined on Jan 2010 @ Europe
#7
@El Amir: sure. say you have your prayer times in a tab
separated file called prayer_times.csv with the following
content as an example:


...
08.08.2010 4 02 5 32 13 19 17 23 20 54 22 14
09.08.2010 4 03 5 33 13 19 17 22 20 53 22 13
....

with highlighted tabs:
..
08.08.2010 ^I^I4 02 ^I5 32 ^I13 19 ^I17 23 ^I20 54 ^I22 14 $
09.08.2010 ^I^I4 03 ^I5 33 ^I13 19 ^I17 22 ^I20 53 ^I22 13 $
..


then you cut fadjr seen in the 3rd tab as follows:

#!/bin/sh
grep -i `date +%d.%m.%Y` prayer_times.csv | cut -f3,3 | sed -e "s/ /:/"

as mentioned above you can play with python and perl command
line scripts (google for them) which give you praying times for the
current date (you have to change the settings for location,
calculation method) and then you can cut the corresponding line
there.


Blues

Last edited by BluesLee; 2010-08-08 at 19:46.
 

The Following User Says Thank You to BluesLee For This Useful Post: