Search Results

Search: Posts Made By: Mannu2525
2,385
Posted By Scrutinizer
Hi, try: awk ' /SELECT *LISTAGG/ { ...
Hi, try:

awk '
/SELECT *LISTAGG/ {
printf "--ignore begin\n%s\n--ignore end\n\n", $0
gsub(/LISTAGG[^)]*\)/,"CountMannuArray(&)")
}
{
print
}
' RS= ORS='\n\n' file
...
987
Posted By RudiC
OK; how about - assuming you're in the .../check...
OK; how about - assuming you're in the .../check directory -
while read OP FN REST
do case "$OP" in
\#*) ;;
cd) SD="$FN"
...
1,873
Posted By MadeInGermany
A sed multi-liner sed '/^...
A sed multi-liner
sed '/^ *[sS][eE][lL][eE][cC][tT]/{
i\
\\o grep org
s/^ */anyword /
:L
$!N
/;/!bL
a\
\\o
}
'
The loop appends the following lines until the end marker ; so...
1,032
Posted By Corona688
Works for the data you showed: BEGIN { ...
Works for the data you showed: BEGIN {
RS=ORS="\n\n"
FS=OFS="\n"
}

{
A=B=0

for(N=1; N<=NF; N++) {
if(!A && $N ~ /^[ \t]*20[ \t]/) A=N
...
7,533
Posted By hergp
You can try this awk script. It looks for fields...
You can try this awk script. It looks for fields looking like dates, splits them into month, day and year and recombines them using a proper format.


BEGIN {
FS="|"
OFS="|"
}
{
...
1,067
Posted By RudiC
Try alsoawk '{T[int(($1-1)/70)] = $1} END {for (t...
Try alsoawk '{T[int(($1-1)/70)] = $1} END {for (t in T) print T[t]}' file
69
139
210
345
418
490
492
1,067
Posted By rdrtx1
try also: awk ' { l=$1 % 70; if (! l )...
try also:
awk '
{
l=$1 % 70; if (! l ) c[NR]=d[NR]=1;
n[NR]=$1; m[NR]=l
}
END {
c[0]=d[0]=c[NR+1]=d[NR+1]=70;
for (i=0; i<NR; i++) if (m[i+1] <= m[i]) c[i]=1
for (i=NR; i>1; i--) if...
1,067
Posted By Don Cragun
I think I see the pattern, but I don't understand...
I think I see the pattern, but I don't understand why the desired output doesn't include the final line:
492

If you wanted that final line as well as the output you said you wanted, you could try...
Showing results 1 to 8 of 8

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