Search Results

Search: Posts Made By: AbelLuis
5,903
Posted By Scrutinizer
This code will not work since it contains an...
This code will not work since it contains an error because curly braces are used in the assignment.
For array assignment you need normal parentheses.

LOG_FILES=( "/Sandbox/logs/*" )
for file...
2,821
Posted By Scrutinizer
For completeness, some other ways to avoid shell...
For completeness, some other ways to avoid shell quoting:
awk '$7=="PASS" && $0~ q "oncomineGeneClass" q ":" && $0~ q "oncomineVariantClass" q ":"' q=\" file

Reverse shell quoting:
awk...
1,806
Posted By Don Cragun
Not quite. That does not give the output...
Not quite. That does not give the output requested in post #1; the merge option to sort does not remove duplicates.
2,821
Posted By Don Cragun
You could also use: awk -v p1="PASS" -v...
You could also use:
awk -v p1="PASS" -v p2="'oncomineGeneClass'" -v p3="'oncomineVariantClass':" '$0 ~ p1 && $0 ~ p2 && $0 ~ p3' file
2,821
Posted By Aia
You could place the code in a file.awk to avoid...
You could place the code in a file.awk to avoid the shell quoting.
You could also,
awk '$7=="PASS" && /\47oncomineGeneClass\47:/ && /\47oncomineVariantClass\47:/' file
2,821
Posted By Scrutinizer
So, in other words: match(s, r) takes a single...
So, in other words: match(s, r) takes a single regular expression, not multiple re's.


--
Another example:
awk '$7=="PASS" && /oncomineGeneClass/ && /oncomineVariantClass/' file
2,701
Posted By Scrutinizer
Try: (GNU sed): sed -r...
Try: (GNU sed):
sed -r "s/([^']*)(('[^']*')?)/\L\1\E\2/g" file
2,701
Posted By RudiC
Try awk -F"'" -vOFS="'" '{for (i=1; i<=NF; i+=2)...
Try awk -F"'" -vOFS="'" '{for (i=1; i<=NF; i+=2) $i = tolower($i)} 1 ' file
select a.login_id,a.password,nvl(a.temp_pass_expiry_dt,systimestamp),nvl(upper(a.status), ' ')
into v_login_id,...
2,701
Posted By drl
Hi, AbelLuis. Unless there is something...
Hi, AbelLuis.

Unless there is something additional here (or that I missed), this appears to fail if the quoted string is not bounded by whitespace ... cheers, drl

Results:
select...
Showing results 1 to 9 of 9

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