Search Results

Search: Posts Made By: eknryan
1,579
Posted By eknryan
AWK_Scripting_'If'_Statements
I am trying to read in a stacking velocity file with the following change in format midway through the file:

V2EU90-226 1293 5000 4100
V2EU90227B 3103 170 1480

I want to output:
226 1293...
2,488
Posted By eknryan
Thanks Danmero! I didnt understand how c worked...
Thanks Danmero! I didnt understand how c worked until now.
2,488
Posted By eknryan
Thanks Thanhdat!, The uniq command worked a...
Thanks Thanhdat!,
The uniq command worked a treat however the AWK prints a 5 line gap between replicate sets. Ive played about with it but cannot reduce this. I am using gawk, would this make a...
2,488
Posted By eknryan
Help with uniq -D [prepend]
Hi,
I am trying to add a blank line between sets of replicate values. I have been trying to use

uniq -D [prepend] -f4 input.txt > output.txt


The input is like

V2-1.0 -1.0...
3,379
Posted By eknryan
Sorry but I have no idea how to sort without gawk...
Sorry but I have no idea how to sort without gawk (I also have almost no knowledge of how to use gawk). From what I have read, I thought it would be simple to use. Is it not possible to modify
sort...
3,379
Posted By eknryan
Thanks Vgersh99! I usually use a command...
Thanks Vgersh99!

I usually use a command line of
gawk.exe -f filter.awk vel.txt > filtered_file.txt

How would I use your suggestion in this way? I have played about with the code but only...
3,379
Posted By eknryan
Sort in AWK
Hi,
I usually use Access to sort data however for some reason its not working. Our systems guys and myself cannot figure it out so ive tried to use AWK to do the sorting. The file is made up of...
3,158
Posted By eknryan
Thanks very much Panyam!! Ive further modified...
Thanks very much Panyam!! Ive further modified your code to add dummy values for $3 and $4. I can do something myself!!
Cheers
Ryan
3,158
Posted By eknryan
Thanks Panyam. I think I get it but Ive tried to...
Thanks Panyam. I think I get it but Ive tried to modify the script to add a further condition but seem to be getting nowhere. I am trying to output as previously however within each series of $1 and...
3,158
Posted By eknryan
Cheers Panyam, I have used the linked txt...
Cheers Panyam,
I have used the linked txt previously. Although it seems pretty comprehensive I have found it quite hard to learn from. Perhaps it just me, with no previous knowledge of scripts and...
3,158
Posted By eknryan
Thanks Panyam, Ive tried to understand both...
Thanks Panyam,
Ive tried to understand both suggestions but could anybody briefly explain what the code is saying?
Thanks
3,158
Posted By eknryan
Franklin52, Thanks very much. Ive spend so long...
Franklin52,
Thanks very much. Ive spend so long trying to sort this.
Ryan
3,158
Posted By eknryan
Apologies Franklin52. Your suggestion does...
Apologies Franklin52.

Your suggestion does not account for the change in cdp number. I think the output is the same as if I used
{NF==4
if (NR==1)
printf $1"/"$2":"$3"-"$4","
if (NR>1)...
3,158
Posted By eknryan
Help with txt formatting using AWK
Hi,
Ive used unix.com to help learn the basics of AWK to format txt files however ive run out of talent and could do with some help. Im not sure if this is possible using awk but I have an input as...
Showing results 1 to 14 of 14

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