Search Results

Search: Posts Made By: echo manolis
1,113
Posted By RavinderSingh13
Hello echo manolis, Could you please try...
Hello echo manolis,

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

awk '{match($0,/ARC=[0-9]+/);val1=substr($0,RSTART,RLENGTH);match($0,/IDE=[0-9]+/);print...
1,439
Posted By Scrutinizer
Here are a couple of options you could try: awk...
Here are a couple of options you could try:
awk '{hNF=NF/2; s=""; for(i=1; i<=hNF; i++) s=s (i==1?"":OFS) $i "=" $(hNF+i); print s}' FS=: OFS=: fileawk '{hNF=NF/2; for(i=1; i<=hNF; i++) printf...
2,397
Posted By MadeInGermany
Another bash-4 construct gives you two digit...
Another bash-4 construct gives you two digit values
echo {01..96}for b in {01..96}
do
...
doneMaybe you want to cycle through all the numbers in the file?
And is it sorted?
Then consider this...
1,330
Posted By MadeInGermany
With awk you can access the fields awk 'NR==1...
With awk you can access the fields
awk 'NR==1 || $2<=10 || $3<=10' inputfile
awk 'NR==1 || !($2<=10 || $3<=10)' inputfileNR is line number
|| is OR
! is NOT
The default action is {print}
3,021
Posted By RudiC
Not too far off RavinderSingh13's proposal, but...
Not too far off RavinderSingh13's proposal, but with some added felxibility rg. field width, still e.g. some error checking missing :
awk -F, 'function FMT(PAR) {return "%" (PAR~/[^0-9....
3,612
Posted By RudiC
How about awk -vRM="XXX" 'NR == 1 {for (i=1;...
How about
awk -vRM="XXX" 'NR == 1 {for (i=1; i<=NF; i++) if ($i == RM) DL[i]} {for (i in DL) $i = ""; gsub (FS FS, FS)} 1' file
aaa bbb ddd
123 afa 2e2
134 feg 5tf
546 rgr g5r
3,612
Posted By drl
Hi. This looks like a CSV-like problem,...
Hi.

This looks like a CSV-like problem, perhaps more generally and precisely, a delimiter-separated values (also DSV) format problem: Delimiter-separated values - Wikipedia...
3,612
Posted By RudiC
This...
This (https://www.unix.com/shell-programming-and-scripting/241491-reading-value-particular-column-csv-file.html?highlight=column+field+heading) OR this...
Showing results 1 to 8 of 8

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