Search Results

Search: Posts Made By: avi.levi
8,647
Posted By avi.levi
It is a little more complicated than that. I am...
It is a little more complicated than that.
I am not making small manipulations on texts.
I tried to narrow it down to the relevant part.

I did some search and I realized there is no way to use a...
8,647
Posted By avi.levi
Sorry, but I must have not explained myself...
Sorry, but I must have not explained myself correctly.
I don't need to read a variable to awk.
The variable is already an awk variable.
Look at the code I posted. It is all 'awk' code. No shell...
8,647
Posted By avi.levi
What did I miss there?
What did I miss there?
8,647
Posted By avi.levi
This is the actual code. I tried using pinName...
This is the actual code.
I tried using pinName as the variable, but obviously this is not the way do it.
How can I use a variable in a regexp?

Thank you.
8,647
Posted By avi.levi
Thanks for your answers, but I need this to be...
Thanks for your answers, but I need this to be part of the "action" part, not the pattern part.
Here's my actual code, which does not work (sorry for complicating):

(FNR==1 && FILENAME !~...
8,647
Posted By avi.levi
awk match whole word using a variable
Hello,
I am writing a script in awk where I need to match a whole word that is stored inside a variable.
For example:
I am working on a text that looks like this, and I want to print the second...
10,117
Posted By avi.levi
It did not work for me. I am getting blanks...
It did not work for me.
I am getting blanks where the evaluated number should be.
Are you running a certain version of awk?

Thank you.

---------- Post updated at 06:45 AM ---------- Previous...
10,117
Posted By avi.levi
OK guys. I am sorry, I did not make my question...
OK guys.
I am sorry, I did not make my question clear enough.
My file does not look so simple, it is more complex.
Here's the real input:

wire [32-1:0] jerry_AWADDR;
wire ...
10,117
Posted By avi.levi
Sorry, I don't understand.
Sorry,
I don't understand.
10,117
Posted By avi.levi
awk evaluating a string as a math expression
Hi,
I am writing a script in awk trying to replace strings that are math expressions with their result.
For example, I have a file that looks like this:

5-1
32/8-1
4*12
17+1-3

I would like...
Showing results 1 to 10 of 10

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