Search Results

Search: Posts Made By: RudiC
55
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...
272
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...
272
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/'...
420
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).
420
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...
389
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.
...
420
Posted By RudiC
Looks like your result in post #7 is EXACTLY what...
Looks like your result in post #7 is EXACTLY what you wanted...
420
Posted By RudiC
A bit difficult to believe. What's your input...
A bit difficult to believe. What's your input data?
420
Posted By RudiC
A "reverse condition" was not specified in the...
A "reverse condition" was not specified in the original post.



Howsoever, try

awk '

/cluster state:/ {print $1, $2
OK[$1] = 1
...
420
Posted By RudiC
You're not too far off for the first part. Try...
You're not too far off for the first part. Try this small adaption of your attempt (and its AMF extension, btw):
awk '

/cluster state:/ {print $1, $2
OK[$1] = 1
...
356
Posted By RudiC
I think your small request more can easily be...
I think your small request more can easily be satisfied along the lines shown by rdrtx1 and me...
215
Posted By RudiC
Try as well sort -k1,1 -k9nr file | uniq -w16 ...
Try as well
sort -k1,1 -k9nr file | uniq -w16
chr1_16857_17742 - chr1 14404 29570 "ENST00000488147.1"; "WASH7P"; - 885
chr1_16857_18061 - chr1 ...
356
Posted By RudiC
For your "max bin" question, try awk...
For your "max bin" question, try

awk -v"MAX=20" '
BEGIN {delta = (delta=="")?2:delta
MXBCK = (MAX / delta) + 1
}

{bucketNr = int(($1+delta) / delta)
if...
356
Posted By RudiC
How far would this small adaption to your code...
How far would this small adaption to your code get you:
awk '
BEGIN {delta = (delta=="")?2:delta
}

{bucketNr = int(($1+delta) / delta)
cnt[bucketNr] += $2
...
238
Posted By RudiC
Fine for a first approach. Any thoughts on how to...
Fine for a first approach. Any thoughts on how to continue with your further steps? Not necessarily in commands / script; plain English will suffice...
238
Posted By RudiC
Any attempts / ideas / thoughts from your side?
Any attempts / ideas / thoughts from your side?
600
Posted By RudiC
Did you have the first positional parameter set...
Did you have the first positional parameter set to 3 or 4? If empty, the entire list will be printed. As will easily be seen in an execution log...


q.e.d.
254
Posted By RudiC
Are you able to live with "0.00 0.00" in a pair's...
Are you able to live with "0.00 0.00" in a pair's first line? Try
awk '
{printf "%s" OFS, $0
}
!X[$1,$2] {print "0.00", "0.00"
}
X[$1,$2]++...
481
Posted By RudiC
A one or two line data sample would be nice. ...
A one or two line data sample would be nice.


The if (...); will do nothing.
The print CONDITION will print an empty entity as the variable is not defined.


Your idea / approach will not...
600
Posted By RudiC
How can -rwxrwxrwx 1 user1 user 15445 Feb...
How can

-rwxrwxrwx 1 user1 user 15445 Feb 11 11:12 httpd-ssl.conf_1581408293
be the 4th newest file if
-rwxrwxrwx 1 user1 user 21627 Feb 11 17:17 httpd.conf_1581421731
-rwxrwxrwx 1 user1 user...
600
Posted By RudiC
You want the 3rd (...) newest file? Try NOT...
You want the 3rd (...) newest file? Try NOT reversing the sorting order
ls -lt *.conf | sed -n "${1}p"
239
Posted By RudiC
More details, please. There doesn't seem anything...
More details, please. There doesn't seem anything wrong with your code snippet, as rdrtx1 already proved. Show context, variable contents, error messages, execution logs, script / command...
251
Posted By RudiC
Try also (after some guesswork) awk -F, '{IX...
Try also (after some guesswork)

awk -F, '{IX = $1 FS $2} IX == OX && $8 - O8 > 1; {OX = IX; O8 = $8}' file
47329,39785,2,12,28,351912.53,2533118.81,172.91,1
...
251
Posted By RudiC
Please be way more specific. What does "where the...
Please be way more specific. What does "where the different is > 1" mean? How does this show up in your desired output? Which of the four lines should be printed? In your attempt, you reference $10...
238
Posted By RudiC
Did you consider windows' START command;...
Did you consider windows' START command; eventually with the /B parameter?


START [/B] plink ....
Showing results 1 to 25 of 500

 

Featured Tech Videos

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