Search Results

Search: Posts Made By: Fakhar Hassan
4,062
Posted By Fakhar Hassan
Thanks Dear Don Cragon! It was really...
Thanks Dear Don Cragon!

It was really helpful. I tried below and it is working.

sed -i -e "s@prob=@prob=$1;//@g" file.txt

I will also try the rest of ways that you explained. Thanks again.
4,062
Posted By Fakhar Hassan
This is not an homework assignment. I am...
This is not an homework assignment. I am implementing a routing protocol for which i need to run the simulation many times with changed values (Changing the value of variable $var1).

So, would you...
4,062
Posted By Fakhar Hassan
I have attached the sample shell and sample text...
I have attached the sample shell and sample text file. These are doing the same as i mentioned in my post without any error.
4,062
Posted By Fakhar Hassan
sed command not accepting variable in shell script
I am using a shell script in fedora linux. While calling to the shell I am also passing an argument (var1=0.77) like shown below

sh gossip.sh var1=0.77

in the shell following command is written...
Showing results 1 to 4 of 4

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