Search Results

Search: Posts Made By: amithkhandakar
4,336
Posted By balajesuri
Did you try Chubler_XL's code snippet? for i...
Did you try Chubler_XL's code snippet?

for i in 1 2
do
sed -i "s:filename:~/Downloads/Project/${i}.tcl:g" ~/Downloads/Project/p0s5n15_$i.tcl;
done
4,336
Posted By Chubler_XL
Try this: for i in 1 2 do sed -i...
Try this:
for i in 1 2
do
sed -i "s/hello/hello${i}/g" ~/Downloads/Project/file$i.tcl
done
4,336
Posted By greet_sed
it works for me ! Please give space between...
it works for me !

Please give space between file name and quote ie '

sed -i 's/^$ns_/$ns/g' ~/Downloads/Project/p0s5n15_$i.tcl
1,108
Posted By greet_sed
something like this: 1. sed -i...
something like this:

1.
sed -i 's/God/GOD/g' file*

2.
#!/bin/bash
for (( i=1; i<=4; i++ ))
do
echo hello"$i" > "file""$i"
done
4,336
Posted By greet_sed
like this: sed -i 's/^Hello1/hi/g' File1
like this:
sed -i 's/^Hello1/hi/g' File1
1,108
Posted By Scott
What about for i in 1 2 3 ?
What about


for i in 1 2 3

?
Showing results 1 to 6 of 6

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