Search Results

Search: Posts Made By: r_t_1601
2,515
Posted By RavinderSingh13
Hello r_t_1601, Could you please try...
Hello r_t_1601,

Could you please try following and let me know if this helps you.

awk -v STR1='/scripts/waitForDummyFilePDS.sh -f$Paramdummyfile -H$ParamIP -e$Paramemail -j$Paramprefilename' ...
2,515
Posted By RudiC
Try awk -v RPST="$STR1|$STR2" 'BEGIN {n =...
Try
awk -v RPST="$STR1|$STR2" 'BEGIN {n = split (RPST, RP, "|")} /VALUEPAIR EXECORDER/ {T=$NF; sub (/""/, "\"" RP[++CNT] "\"", T); sub ($NF, T)} 1' filebut make sure the strings STR1 & 2 have...
2,515
Posted By RavinderSingh13
Hello r_t_1601, Not sure how you want to...
Hello r_t_1601,

Not sure how you want to substitute the string VALUE with multiple strings as it is present in many places, following is the example of using one variable and doing substitution...
1,120
Posted By RudiC
Any attempts/ideas/thoughts from your side? ...
Any attempts/ideas/thoughts from your side?

---------- Post updated at 11:33 ---------- Previous update was at 11:11 ----------

Howsoever, tryawk '{print $0 ORS > "file" 2- ($2 ~ /dn:...
1,662
Posted By RudiC
grep can't do substitutions; sed or awk (amongst...
grep can't do substitutions; sed or awk (amongst others) can. Actually, you don't need grep at all. Try awk '
FNR==NR {R[$1".log"]=$2
next
}

$2 in R ...
2,617
Posted By sea
GNU/Linux is rather vague. When asked about...
GNU/Linux is rather vague.
When asked about OS/shell, please post the output of these:
uname -a
$SHELL --version

Hope i understood you right, if so, you could try:
(Note: i've just reused your...
2,617
Posted By Chubler_XL
If you have a process that been running a few...
If you have a process that been running a few days you may end up with "Jan23" in the ps coloumn 5 or even "2014" if its been running a few months.

This solution may prove to be a little more...
2,617
Posted By RudiC
How about ps -eaf | awk -vBEF=$(( $(date +"(%H *...
How about ps -eaf | awk -vBEF=$(( $(date +"(%H * 60) + %M") - 15)) ' /pmdtm/ {split($5,a,":"); if (((a[1]*60)+a[2]) < BEF) print "pmstack -p ", $2}'
pmstack -p 2026
pmstack -p 2100
pmstack -p ...
1,222
Posted By Don Cragun
Try: awk -F, '!($1=="UPDATE PLAN ADD RATE...
Try:
awk -F, '!($1=="UPDATE PLAN ADD RATE SCHEDULE" && $4=="") && !($1=="CREATE L2 SUPP PLAN" && $5=="")' Source_File.csv
820
Posted By Akshay Hegde
Scrutinizer here is two see Sample output |...
Scrutinizer here is two see

Sample output | Unix Linux Forums | Shell Programming and Scripting (https://www.unix.com/shell-programming-scripting/243300-sample-output.html)

Urgent ! | Unix Linux...
Showing results 1 to 10 of 10

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