Search Results

Search: Posts Made By: amithkhandakar
Forum: IP Networking 12-19-2011
7,382
Posted By amithkhandakar
OLSR simulation in ns2
# Create the simulator object that we need in order to run NS
set ns [new Simulator]


# Set the parameters that we will use for wireless communications
set val(chan) ...
4,297
Posted By amithkhandakar
for i in 1 2 do sed -i...
for i in 1 2 do sed -i "s:filename:~/Downloads/Project/${i}.tcl:g" ~/Downloads/Project/p0s5n15_$i.tcl; done

How can i have replace filename with "
~/Downloads/Project/${i}.tcl" with the " "...
4,297
Posted By amithkhandakar
sed -i...
sed -i "s/filename/"~/Downloads/Project/${i}.tcl"/g" ~/Downloads/Project/p0s5n15_$i.tcl;

Can anyone help me with this where i would like to replace the text filename with...
4,297
Posted By amithkhandakar
thanks a ton it works greet_sed ----------...
thanks a ton it works greet_sed

---------- Post updated at 04:37 PM ---------- Previous update was at 03:54 PM ----------

for i in 1 2
do
sed -i 's/hello/helloi/g'...
4,297
Posted By amithkhandakar
sed -i...
sed -i 's/^$ns_/$ns/g'~/Downloads/Project/p0s5n15_$i.tcl

i tried this ,where i want to replace the occurance of $ns_ to $ns in the file ~/Downloads/Project/p0s5n15_$i.tcl

but it shows me the...
4,297
Posted By amithkhandakar
How to replace multiple text in a file using sed
can anyone please help me in the below scenario:

File1:
Hello1
Hello1


i want to use sed to replace multiple occurances of Hello1 in file 1 to welcome.

Thanks a ton for the help
1,075
Posted By amithkhandakar
Thank a ton scott it worked. ---------- Post...
Thank a ton scott it worked.

---------- Post updated at 02:26 PM ---------- Previous update was at 02:21 PM ----------

dear scott

can you please help me out with the following :

1.I have...
1,075
Posted By amithkhandakar
Help with dumb for-loop question
can anyone please suggest what is wrong with this command:

for i in [1,2,3];
do
cat ~/Downloads/Project/p0s0n15.tcl>>~/Downloads/Project/p0s0n15_$i.tcl;
./setdest -n 15 -p 0 -M 5 -t 100 -x...
Showing results 1 to 8 of 8

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