Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Search Results

Search: Posts Made By: RudiC
157
Posted By RudiC
The code has to match NF fields against 9 items...
The code has to match NF fields against 9 items for every line; this will take its time, esp. on large files. I compared (timed) your code to mine on a medium sized sample data file and found that...
Forum: Shell Programming and Scripting 3 Hours Ago
94
Posted By RudiC
Try awk ' /"res:ResultCode":-1/ {sub...
Try awk '
/"res:ResultCode":-1/ {sub (/:[0-9]*,[0-9]*/, " ", $0)
match ($0, /"message":"[^"]*/)
CNT[$1 OFS $2 OFS substr($0, RSTART+11,...
31
Posted By RudiC
$ type -a kill kill is a shell builtin kill...
$ type -a kill
kill is a shell builtin
kill is /usr/bin/kill
kill is /bin/kill
80
Posted By RudiC
Try awk '/Services/ {match ($0,...
Try
awk '/Services/ {match ($0, /[A-Za-z_]*COB[A-Za-z_]*/); print substr ($0, RSTART, RLENGTH)}' file
NEPAL_COB
80
Posted By RudiC
Any attempts / ideas / thoughts from your side?
Any attempts / ideas / thoughts from your side?
Forum: Shell Programming and Scripting 13 Hours Ago
157
Posted By RudiC
Tryawk ' BEGIN {HDLN =...
Tryawk '
BEGIN {HDLN = "eventtime|srcip|dstip|srcport|dstport|transip|transport|action|sessionid"
MX = split (HDLN, HD, "|")
print HDLN
}
{DL = ""
...
Forum: Shell Programming and Scripting 15 Hours Ago
157
Posted By RudiC
Show your script.
Show your script.
Forum: Shell Programming and Scripting 15 Hours Ago
94
Posted By RudiC
Again, your sample file doesn't match your...
Again, your sample file doesn't match your expectation. Try
awk '
/"res:ResultCode":-1/ {sub (/:[0-9]*,[0-9]*/, " ", $0)
match ($0, /"message":"[^"]*/)
...
Forum: Shell Programming and Scripting 20 Hours Ago
157
Posted By RudiC
Any attempts / ideas / thoughts from your side?
Any attempts / ideas / thoughts from your side?
101
Posted By RudiC
Try ps -efo pid,comm,etimes | awk '$NF >...
Try

ps -efo pid,comm,etimes | awk '$NF > 7200'
92
Posted By RudiC
Try awk '/BEGIN JOB/, /End of job/ {if (/BEGIN...
Try
awk '/BEGIN JOB/, /End of job/ {if (/BEGIN JOB/ || /file/) print $NF; if (/Sent/) print $(NF-2)}' file
JOB1
/users/file1.dat.001
SERVER1
Forum: OS X (Apple) 1 Day Ago
362
Posted By RudiC
debugfs with its unlink and rm commands comes to...
debugfs with its unlink and rm commands comes to mind, but it might suffer from the same problems as the other tools. When using it, be very careful and know exactly what you are doing!
107
Posted By RudiC
Tryawk -F: '{sub (/\[/, "", $1); sub (/"}/, "",...
Tryawk -F: '{sub (/\[/, "", $1); sub (/"}/, "", $NF); CNT[$1 ":" $2 " " $NF]++} END {for (c in CNT) print c, CNT[c]}' file
2019-07-18T01:14 Insufficient balance 1
2019-07-18T01:09 Error 1...
67
Posted By RudiC
Keeping in mind that, why not trydos2unix *? ...
Keeping in mind that, why not trydos2unix *?
Your stderr redirection seems a bit weird.
Forum: OS X (Apple) 2 Days Ago
362
Posted By RudiC
Does your find command offer the -delete action?...
Does your find command offer the -delete action? find . -delete
200
Posted By RudiC
Try also awk ' {print substr($0,1,8)...
Try also
awk '
{print substr($0,1,8) substr (sprintf ("%d", substr($0, 9, 6) "000"), 1, 6) substr($0,15)
}
' file
470
Posted By RudiC
For the fun of it: for FN in *; do { sort...
For the fun of it:

for FN in *; do { sort $FN | tee >(uniq -u | wc -l >&3) | wc -l; echo $FN; } 3>&1; done | paste -s -d"\t\t\n" | sort -n
357
Posted By RudiC
tee works like a plumber's T-piece that allows...
tee works like a plumber's T-piece that allows gas or water flow split into two directions. tee accepts input on stdin and, on top of writing it to stdout, also writes / appends to one or several...
381
Posted By RudiC
Try awk ' {X = 3 + int((NF-2) *...
Try
awk '
{X = 3 + int((NF-2) * rand())
print $(X-2), $(X-1), $X
}
' file
381
Posted By RudiC
Moving targets don't really help. Targets...
Moving targets don't really help.
Targets defined imprecisely don't really help.
381
Posted By RudiC
The conditions you apply in post #4 severely...
The conditions you apply in post #4 severely deviate from your statement "t should be random way"in post #1. Which is the valid one, now?


For the random request, tryawk '
NF < 4 ||
int(10 *...
266
Posted By RudiC
Try (untested) awk '{gsub ("/", "-", $NF)}...
Try (untested)

awk '{gsub ("/", "-", $NF)} 1' file
273
Posted By RudiC
Any attempts / ideas / thoughts from your side?
Any attempts / ideas / thoughts from your side?
381
Posted By RudiC
Any attempts / ideas / thoughts from your side?
Any attempts / ideas / thoughts from your side?
398
Posted By RudiC
As Scrutinizer already stated, you need to be way...
As Scrutinizer already stated, you need to be way more specific. One option would be
sed '/<SrcInt/ {s/Def/\o001/g; s/Rep/Def/g; s/\o001/Rep/g}' file
<SrcIntRep>WAUXDFXXX<\SrcIntRep>...
Showing results 1 to 25 of 500

 

Featured Tech Videos