hi guys
i have a simple question
i have a directory name like
"P1 ( 13 - 15 ) = 110"
how can i replace 13 and 15 with other variables
e.g i1=3 and i2=5
how can i replace 13 and 15 with $i1 and $i2
i use this code but that does not work
Code:
find . -type d -name "P*" |while read FILE
do
echo $FILE | awk '( $3 = "$i1" ) { $5 = "$i2" } {print} '
.
.
.
done