Search Results

Search: Posts Made By: J-Man
1,573
Posted By RudiC
Try sed '/AUTOEDIT EXP/{s//VARIABLE NAME/; s/=/"...
Try sed '/AUTOEDIT EXP/{s//VARIABLE NAME/; s/=/" VALUE="/2}' file4
<VARIABLE NAME="%%S_APP_HOME" VALUE="APP_HOME=%%G_APP_HOME_PREFIX.pmt/apb"/>


[a-z][0-9] won't match "%", "_", nor any upper...
1,573
Posted By Skrynesaver
\1 holds the value of the first capture group on...
\1 holds the value of the first capture group on the lhs of a substitution

google sed capture groups for many detailed discussions
Forum: AIX 03-06-2014
6,053
Posted By Perderabo
My guess is that on Monday the user was in 16...
My guess is that on Monday the user was in 16 groups and someone added a 17th group since then. NGROUPS_MAX is often set to 16. Even if it is increased, NFS only supports 16 groups. Is the file...
18,906
Posted By ahamed101
Use the -exec option then find...
Use the -exec option then


find /prodoragridcn_01/app/oracle/product/10204/rdbms/audit/ -name "*.aud" -type f -mtime +60 -exec rm {} \;


--ahamed
1,302
Posted By vgersh99
echo "${line}" | awk -F'/' '{match($NF,...
echo "${line}" | awk -F'/' '{match($NF, "-[^.]*"); print substr($NF,RSTART+1,RLENGTH-1)}'
or

echo "${line}" | awk -F'/' '{s=index($NF,"-");print substr($NF,s+1,index($NF, ".")-s-1)}'
1,646
Posted By agama
A bit of explanation as to why yours wasn't...
A bit of explanation as to why yours wasn't behaving as desired. First, you don't need to escape the colon or comma which makes it easier to read:


sed 's/:.*,/,/g' tmp.txt


Regular...
2,213
Posted By Scrutinizer
Hi, try this instead: awk...
Hi, try this instead:
awk '/<SCHED_GROUP/{p=1}/>/{p=0} {printf("%s",$0)} !p{print ""}' infile
2,213
Posted By Scrutinizer
Try this: awk '/<SCHED_GROUP/{p=1}/>/{p=0}...
Try this:
awk '/<SCHED_GROUP/{p=1}/>/{p=0} {printf $0} !p{print ""}' infile
2,213
Posted By Scrutinizer
Hi, you cannot mix awk and sed like that. If it...
Hi, you cannot mix awk and sed like that. If it is always on the same line then you could use this:
sed 's/\(<SCHED_TABLE \)\(.*TABLE_NAME="BPR-PP-CCR"\)/\1TABLE_USERDAILY="UTC" \2/' infile > outfile
Showing results 1 to 9 of 9

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