Since 4/4/2012 5:51:54 PM, janis_papanagnou has written 16 articles and participated in 1013 conversations. janis_papanagnou signature: janis_papanagnou
Time triggered tasks1152 (3/30/2012 11:06:55 AM) comp.unix.shell [ This may be considered a bit OT, please bear with me; I've already asked for possible solutions in some Unix group, to no avail. ] I have been seeking for a possibility to start several independent jobs each... Janis
cron and DST (daylight saving time)14265 (3/25/2012 4:02:27 PM) comp.os.linux.misc With the recent DST offset some of my cronjobs are running too early. I can change the scripts to handle the trigger myself but I think that would be cron's task in the first place. I haven't found that answer ... Janis
Multi precision integer arithmetic378 (8/3/2011 9:17:57 AM) comp.lang.awk I seem to recall that there was a plan to support for multi-precision arithmetic (integer exact arithmetic for decimals of arbitrary length) in gawk. So I've checked gawk 4.0.0 and got... $ gawk4 'BEGIN{print ... Janis
gawk 4.0 performance issue1058 (7/7/2011 7:13:13 PM) comp.lang.awk I've compiled GNU awk 4.0 on Cygwin, and I've also GNU awk 3.1.8 available. (Compilation went smoothly after I converted all the text-file types.) Then done some logfile parsing without using any exotic functi... Janis
Parse arbitrary date format686 (7/5/2011 3:43:38 PM) comp.lang.awk I want to parse various logfiles with time stamp of arbitrary syntax. It's certainly possible to analyse all the existing date formats and parse the date fields according to the specific format selectively. It ... Janis
awk language parsing error - closing function parenthesis1650 (5/21/2011 5:11:14 AM) comp.lang.awk While using larger expressions in gawk functions I just noticed that the closing function parenthesis must not be on a line of its own. # okay { sub (/pat/, "repl") } # not okay { sub (/pat/, "r... Janis
getline timeout (revisited)968 (4/8/2011 12:23:04 PM) comp.lang.awk I've been currently looking for a timeout option for getline in the context of an /inet/tcp/... socket communication with gawk. This topic had already been addressed here in c.l.a many many years ago, as my go... Janis
piping to fgrep1612 (4/10/2013 8:34:24 AM) comp.unix.shell Is it possible to pipe to fgrep? When I tried, it replies "fgrep: can't o=
pen -"
The input file for the fgrep is actually $0. I grep for all the variable a=
ssignments in the shell script, cut that par... jackshown(61)
remove everything but the date611 (4/11/2013 12:23:24 PM) comp.unix.shell Hi all,
I have several files in a folder. Each filename contains a date
occurrence in the format yyyyMMdd (eg. 20130401)
Using bash, how can I rename the files removing everything but the date?
For e... amsel(11)
Extracting data in a file712 (4/12/2013 11:09:48 PM) comp.unix.shell Hi,
I=B4m looking for any way to get all lines in a text file having date betwe=
en 04/11/13 16:00 and 04/12/13 18:00.
This is the text file:
387241 ORA_ENAMEL_DFM_GHA_DZ Backup Done 0 04/12/... contracer11(156)
Cleanly exiting from a 'sourced' script... (bash)919 (4/16/2013 7:46:30 PM) comp.unix.shell I know this is in the category of "If you need to do that, then you
shouldn't be sourcing it", but I'm asking anyway... I'm sure someone,
somewhere, has come up with a clever way to do this.
We all know t... gazelle3(1598)
Passing command line argument to an Expect script817 (4/18/2013 8:48:16 PM) comp.unix.shell Hi,
Please, I need send an argument to a expect script like below:
>> ./ip_address 200.244.20.10
Where ip_address script haves an Expect script like below:
/usr/bin/expect"
sleep 1
send "bye\r"
EOD... contracer11(156)
HTML version of SUSv4 updated to include TC138 (4/19/2013 12:29:05 PM) comp.unix.shell
The Open Group announced today that the freely available HTML version
of the Base volumes of the Single UNIX Specification, version 4 (aka
POSIX.1-2008) have been updated to a 2013 edition that incorporates... geoff31(366)
bash -> dash translation189 (4/28/2013 7:31:13 PM) comp.unix.shell Hi,
I recently got bitten by the change from bash to dash as the default
/bin/sh in Debian. While bash was the default, the following ran fine
(shebang in the script is "#! /bin/sh"):
local projstr... spluque(54)
converting publication lists to html34 (5/11/2013 5:26:16 AM) comp.unix.shell I have to convert a slew of publication lists to html and because this woul=
d be quite tedious, I decided to write a short script to do the work for me=
..
The simple script below reads each line of the f... jackshown(61)
Gnuplot Question #214 (5/17/2013 2:15:17 AM) comp.unix.shell Not sure if this is the right group...
I have a data file of the following format:
servername,2013-05-11 17:46:03,SomeText,195,195,11,202
servername,2013-05-11 17:47:03,SomeText,192,192,23,103
servernam... mentorbeery(7)