Search Results

Search: Posts Made By: lorenzz
Forum: Programming 07-15-2008
19,688
Posted By lorenzz
spirtle// Thank you so much, $$ works !!! You...
spirtle//
Thank you so much, $$ works !!!
You have shed light on me finally.
Forum: Programming 07-14-2008
19,688
Posted By lorenzz
joeyg// Inside the makefile, test: ...
joeyg//

Inside the makefile,

test:
awk '/MUCOEFF/{$1=0.1}1' file > file


I want to change values of MUCOEFF in file with above makefile.

0.0 MUCOEFF -> 0.1 MUCOEFF

If I...
Forum: Programming 07-14-2008
19,688
Posted By lorenzz
how to print $ with makefile..
Hello~

If $ is inside makfile, it is considered as internal definition of makefile.
Is there any way around this?
I mean I want to print $ using makefile.
Any tip will be great help !
4,088
Posted By lorenzz
fpmurphy// But it is just part of the full...
fpmurphy//
But it is just part of the full script which is long and depend on many variables.
So I want to put this full script in file and use it conveniently.
4,088
Posted By lorenzz
I made makefile as follows, test: ...
I made makefile as follows,

test:
awk '/MUCOEFF/{$1+=0.6}1' filename > filename

and when I type "make test", I get

awk: /MUCOEFF/{+=0.6}1
awk: ^ syntax error
make: ***...
4,088
Posted By lorenzz
Thanks danmero, it worked in command line. But...
Thanks danmero, it worked in command line.
But it do not work in makefile.
I stored this in makefile for frequent use, but $1 do not work.
Is there any solution?
4,088
Posted By lorenzz
how to change a number in a file with sed?
Hello,

I have a file which contains some line as follows,

9.9 TEMP
9.9 MUCOEFF
0.0 EPSILON

And I want to increase this...
Showing results 1 to 7 of 7

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