Search Results

Search: Posts Made By: RudiC
49
Posted By RudiC
Looks like you're searching for the C: string to...
Looks like you're searching for the C: string to split upon. How about csplit -f "file_to_split.file." -b "%02d.txt" file_to_split.txt "/C:/" "{*}"
125
Posted By RudiC
There's NO string like "reached" in your samples,...
There's NO string like "reached" in your samples, nor semicolons. Those don't show up in my host calls, either. Replace ! /^Host/ with /domain/ or /name/ or /pointer/. If that doesn't help, show...
296
Posted By RudiC
<file tr - $'\n' | paste -sd'--\n' abc-per-qwe ...
<file tr - $'\n' | paste -sd'--\n'
abc-per-qwe
xyz-triv-amz
try-utr-ytu
uio-pou-cvf
bht-grt-qwe
125
Posted By RudiC
Not sure what either file's contents is. For the...
Not sure what either file's contents is. For the original file, try



awk '! /^Host/ {split ($1, T1, "\."); split ($NF, T2, "\."); print T1[1], T2[1]}' nameserver2.txt
316
Posted By RudiC
What if a value falls into the gap between e.g. 0...
What if a value falls into the gap between e.g. 0 and 0.01? This is not covered here. Make sure none of your values fall into those gaps. Try this
$ awk -v"MIN=0" -v"MAX=20" '
BEGIN {delta =...
81
Posted By RudiC
Try $ awk -F\| '{split ($2, T, "="); $2 = T[1]...
Try
$ awk -F\| '{split ($2, T, "="); $2 = T[1] "=" tolower(T[2])} !a[$0]++' OFS=\| file
PROGRAM=JDBC Thin Client|USER=mickey|HOST=11.123.12.123|testmachine.xyz.com.zz



It converts just the...
316
Posted By RudiC
Just run the for loop up to MXBCK in lieu of...
Just run the for loop up to MXBCK in lieu of numBuckets (whose final value you ignore, BTW, running the loop with < instead of <=)


Where did your request for a MIN value disappear that you...
647
Posted By RudiC
I didn't make it too clear: What i posted is what...
I didn't make it too clear: What i posted is what Akshay Hedge's would produce BEFORE it is piped into the sqlplus command. Try it literally, and post your results. Then run his code and post.
179
Posted By RudiC
Use e.g. the mail / mailx command to read /...
Use e.g. the mail / mailx command to read / delete the mails your user received.
647
Posted By RudiC
Difficult to believe. Unfortunately I can't test...
Difficult to believe. Unfortunately I can't test against an SQL DB, but this is what is piped into sqlplus -s dev01/password@dEV3 in Ashkay Hedge's fine proposal:
SET HEADING ON
SET WRAP OFF
SET...
313
Posted By RudiC
How about awk '{for (i=1; i<=NF; i++)...
How about
awk '{for (i=1; i<=NF; i++) {$i=(int(.5+rand()))?$i:"b"; SUM+=x}} 1' file
b a b a b a b a b a
b b b b b a a b b b
437
Posted By RudiC
Try awk ' L0 {printf "%s" OFS,...
Try
awk '
L0 {printf "%s" OFS, L0
}
!X[$1,$2] && L0 {if (SAME) print DLT
else print "0.00", "0.00"
SAME = 0
...
480
Posted By RudiC
Looks like there's no route to host, an port 20...
Looks like there's no route to host, an port 20 is not open.
527
Posted By RudiC
Given the input is exactly as given in post #1,...
Given the input is exactly as given in post #1, i.e. no more nor less than three weeks between the two period dates, try (running awk thrice and date twice only, and opening / reading file twice as...
604
Posted By RudiC
Executing the awk script in your post #15 with...
Executing the awk script in your post #15 with exactly the data given in that post, I get
LOTC cluster
AMF cluster
LOTC cluster state is ok
AMF cluster state is ok


So I presume you might...
480
Posted By RudiC
I'm lost. You - traceroute and ping...
I'm lost. You


- traceroute and ping 203.112.144.202
- ftp to 164.52.194.12
- ftp to 172.16.80.80 (which, in turn, is taken as source when pinging)


Pls tell us which is the PC, the AIX...
313
Posted By RudiC
How "randomly" should those replacements occur?...
How "randomly" should those replacements occur? Exactly half? Half per line or per total replacements over all lines?
221
Posted By RudiC
No -E necessary: $ cat file text4 ...
No -E necessary:


$ cat file
text4
text5
text11
file13
file15
text16

$ echo {text,file}{4..16}$'\n' | grep -vffile



EDIT: or, try
grep -v -etext4 -etext5 -etext11 -efile13...
646
Posted By RudiC
Do you want the End pattern excluded? Try ...
Do you want the End pattern excluded? Try



awk '/Start/,/End/ {if (/12345/) P = 1; if (/End/) P = 0} P' file
12345
.
. EDIT: included?

awk '/Start/,/End/ {if (/12345/) P = 1; if (P)...
297
Posted By RudiC
Not sure this works with all tr versions: ...
Not sure this works with all tr versions:


echo "HiringManager_RHMC, DirectSupervisor_RHMC, ProcessServerReadAccess_ST" | tr -s ', ' '\n'
HiringManager_RHMC
DirectSupervisor_RHMC...
424
Posted By RudiC
If you (roughly) know what to exclude (here:...
If you (roughly) know what to exclude (here: .jsp), try
find /tmp/custom -type f \( -name '*.xml?*' -o -name '*.js[^p]*' -o -name '*.jsp?*' \) | grep -v '/BACKUP/'
/tmp/custom/moht.xml_tmp...
424
Posted By RudiC
You should find files with at least one more char...
You should find files with at least one more char after the extension, then:


find /tmp/custom -type f \( -name '*.xml?*' -o -name '*.js?*' -o -name '*.jsp?*' \) | grep -v '/BACKUP/'...
604
Posted By RudiC
You need to copy the spaces araound " UNLOCKED...
You need to copy the spaces araound " UNLOCKED ENABLED " as well (c.f. post #6).
604
Posted By RudiC
It does the same as your code does, except once a...
It does the same as your code does, except once a line failed, you don't need to check further. That's what the OK array, indexed by the respective cluster state, is for. Same logic as before for the...
545
Posted By RudiC
Not being a native speaker, I think this is not a...
Not being a native speaker, I think this is not a rectangle. It is a parallelogram or a rhombus / rhomboid.


This is a coordinate pair, a point in a plane. A line needs at least one more point.
...
Showing results 1 to 25 of 500

 

Featured Tech Videos

All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy