how to change some text of a certain line of a text file with bash and *nix scripting ??
i could have use pascal to do that but ...
how to do it with bash , awk , sed or whatever the *nix guys like to do ??
eg ::
theres a file with the content of ::
Code:
...
private final int invokeThreadK=3;
private final int invokeRunnableK=4;
private final int invokeK_MaxCount=5;
/////////////////////////////////////////////////////////////////////////////////////////////////////
private final String thisAddr="192.168.1.15";
private boolean terminated = false;
final String bttext="mb01buttton" ;
...
when i execute a script file something like "dobuild 192.168.1.1"
the above file will be updated to ::
Code:
...
private final int invokeThreadK=3;
private final int invokeRunnableK=4;
private final int invokeK_MaxCount=5;
/////////////////////////////////////////////////////////////////////////////////////////////////////
private final String thisAddr="192.168.1.1";
private boolean terminated = false;
final String bttext="mb01buttton" ;
...
//thanks in advance ...
.