On Thu, February 13, 2014 4:55 pm, JiÅÃ Baum wrote:
where should I change it to en_au ?
LANG=en_AU.UTF-8; export LANG
Jiri, thanks
that didn't seem to stick, I've now edited /etc/sysconfig/i18n ,that
seems to return correct LANG
# set | grep LC_
# set | grep LANG
LANG=en_AU.UTF-8
BUT,
On 13/02/14 22:47, li...@sbt.net.au wrote:
Jiri, thanks that didn't seem to stick, I've now edited
/etc/sysconfig/i18n ,that seems to return correct LANG # set | grep
LC_ # set | grep LANG LANG=en_AU.UTF-8 BUT, using 'date' it still
wants m/d/y # date --date='20/03/2014' +%s date: invalid date
On Thu, February 13, 2014 11:55 am, Rick Welykochy wrote:
trtd colspan=1 rowspan=1Start Date Time: /tdtd colspan=1
rowspan=120/03/2014 1400 Thursday/td/tr
is 'grep -o' the way to go ? what regex do I need where I put ?
grep -o 'trtd colspan=1 rowspan=1Start Date Time: /tdtd
colspan=1
On Thu, February 13, 2014 10:54 pm, Michael Chesterton wrote:
Michael, thanks
try
sudo grep -r en_US /etc
also the locale command on systems prints what everything is set for
$ locale
LANG=en_AU.UTF-8
locale was OK
# locale
LANG=en_AU.UTF-8
LC_CTYPE=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
li...@sbt.net.au wrote:
that works well, the other item I need to grab is 'Duration', which can be
2 or 3 digits as below;
is there a way to have egrep get such 2 or 3 digits ?
trtd colspan=1 rowspan=1Duration: /tdtd colspan=1
rowspan=160/td/tr
or
...td colspan=1 rowspan=1120/td...
Use the ?
li...@sbt.net.au wrote:
I would like to fetch date/time from html file, and use date comparison
and make an ics/vcal file eventually
I found a few pages on the web that discuss what you are doing: web scraping,
using python as it happens.
http://www.rexx.com/~dkuhlman/quixote_htmlscraping.html
I would like to fetch date/time from html file, and use date comparison
and make an ics/vcal file eventually
the date comes as so:
trtd colspan=1 rowspan=1Start Date Time: /tdtd colspan=1
rowspan=120/03/2014 1400 Thursday/td/tr
is 'grep -o' the way to go ? what regex do I need where I put
Hi,
Voytek:
I would like to fetch date/time from html file, and use date comparison
and make an ics/vcal file eventually
Hmm, sounds like you might want to use a different programming language,
like python, perl or something, rather than just a shell script. It can
be done in shell script, but
li...@sbt.net.au wrote:
I would like to fetch date/time from html file, and use date comparison
and make an ics/vcal file eventually
the date comes as so:
trtd colspan=1 rowspan=1Start Date Time: /tdtd colspan=1
rowspan=120/03/2014 1400 Thursday/td/tr
is 'grep -o' the way to go ? what regex
I would recommend egrep and use the following extended regular
expression:
egrep -o '[0-9]{2}/[0-9]{2}/[0-9]{4}[[:space:]][0-9]{4}'
Rick, Jiri,
many thanks, I'm trying to get this done;
egrep works good, I was trying to shortcut date comparison thing by
converting to seconds, BUT, hit a
Hi,
Rick, Jiri,
many thanks, I'm trying to get this done;
egrep works good, I was trying to shortcut date comparison thing by
converting to seconds, BUT, hit a snag as my system is set to:
# set | grep LANG
LANG=en_US.UTF-8
check also the LC_* variables:
set | grep LC_
# date
sharkid == sharkid 5h4rk writes:
sharkid Hi, I'm trying to create a script that compare 2 or more
sharkid characters, to find out the largest or the lowest one, for
sharkid example, I enter each letter one by one, like a, b, c, d, e,
sharkid so the lowest one is a and the largest one is e.
Hi, I'm trying to create a script that compare 2 or more characters, to find
out the largest or the lowest one, for example, I enter each letter one by
one, like a, b, c, d, e, so the lowest one is a and the largest one is e.
How can I do that?
Thanks
^^
--
SLUG - Sydney Linux User's Group
On 13/12/2006, at 8:22 PM, 5h4rk wrote:
Hi, I'm trying to create a script that compare 2 or more
characters, to find
out the largest or the lowest one, for example, I enter each letter
one by
one, like a, b, c, d, e, so the lowest one is a and the largest one
is e.
How can I do that?
It's pretty simple, in bash at least:
$ export A=C B=d
$ if [[ $A $B ]]; then echo $A is less than $B; fi
C is less than d
if you want to input them from the keyboard you can use 'read' and probably
a whole lot of other ways too :)
On 12/13/06, 5h4rk [EMAIL PROTECTED] wrote:
Hi, I'm trying
Why not do
mysqldump $(date +%b-%-d)-dump.sql
alex
On Mon, Aug 25, 2003 at 10:47:41PM +, Voytek Eymont wrote:
I'm trying to dump data into a date-named file as in:
mysqldump %dd%-%mm%-dump.sql
so far I made an alias for today, but, supect I might not be
heading in the right
this is a snippet from my backup script.
the $6-$2-$3 expands as (for example) 2003-Aug-26
Amanda
set $(date)
#
if test $1 = Sun ; then
# weekly a full backup of all data and config. settings:
# first, backup Cadwal
echo full backup Cadwal
tar cfz
I'm trying to dump data into a date-named file as in:
mysqldump %dd%-%mm%-dump.sql
so far I made an alias for today, but, supect I might not be
heading in the right direction with it, so any pointers appreciated:
# alias today='date +%b-%-d'
Voytek Eymont
--
SLUG - Sydney Linux User's
I'm trying to send an email from within a script which is running as root,
but I want to have the email come from a user.
I've made these two attempts, but neither work.
.
su - user
mail -s subject line mail.file another.user@domain
exit
.
su user --command=mail -s subject line
su - user
mail -s subject line mail.file another.user@domain
exit
If you're using sendmail, try
sendmail -f user@domain receiver@domain mail.file
--
Paul L Danielshttp://www.pldaniels.com
Linux/Unix systemsInternet Development
ICQ#103642862,AOL:cinflex,IRC:inflex
I don't have any manuals handy for this one so I thought Id ask the list my
newbie question.
I am writing a small shell script for work which reads in comma separated data
and parses it to another program. I want to check each field to see if it is
blank and if so exchange the blank for two
"Aaron Binns" [EMAIL PROTECTED] writes:
I don't have any manuals handy for this one so I thought Id ask the list my
newbie question.
I am writing a small shell script for work which reads in comma separated data
and parses it to another program. I want to check each field to see if it is
If this really is a simple subbstitution, try using gawk, it will automatically
handle the line input, and you can set the filed seperator to be the comma
(FS=,) which will parse all teh fields for you.
The shell is probabl;y not the best solution to this problem.
Cheers
Erich
On Tue, 29 Aug
23 matches
Mail list logo