Search Results

Search: Posts Made By: Golpette
4,378
Posted By Golpette
Thanks - avoiding using decimals works for...
Thanks -

avoiding using decimals works for the case I'm doing now but could you tell me WHY this is even a problem for awk?
And why are there certain decimal numbers (0.3, 0.7) that pose a...
4,378
Posted By Golpette
awk if statement / equals operator
Hi,
I was hoping someone could explain this please :)

I'm using bash, scientific linux... and I don't know what else you need to know. With


awk '{ if( 0.3 == 0.1*3) print $1}' file.dat

...
1,945
Posted By Golpette
Finding lines with a regular expression, replacing them with blank lines
So the tag for this forum says all newbies welcome...
All I want to do is go through my file and find lines which contain a given string of characters then replace these with a blank line. I really...
1,041
Posted By Golpette
Thank you for such a quick reply - I should maybe...
Thank you for such a quick reply - I should maybe have made my question a bit clearer.

1. This is useful thank-you!
However I was looking to access directly the elements of each line though, so...
1,041
Posted By Golpette
Basic line reading and file merge question
No doubt these questions have been answered many times, but I struggled to find them - sorry. 2 questions:

1. I wish to read in a file one line at a time and do 'stuff' with it, such as:

...
Showing results 1 to 5 of 5

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