var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Help needed with using sed
From the word Hello234.p456world345.678.exe I need to extract "234.p456" and assign it to another variable.
Can anyone help me with this using sed?
sed is a program that reads a file and performs actions on each line of the file depending upon the instructions that it is given.
You need to use "cut".
Alternatively, if the sub-string is not column based,
word=`echo "Hello234.p456world345.678.exe" |cut -c6-13`
word=`echo "Hello234.p456world345.678.exe" |cut -d"o" -f2`
word=`echo $word |cut -d"w" -f1`
if you need to get everything between hello and world, you can use :
echo Hello234.p456world345.678.exe | sed -ne "s/^Hello\(.*\)world.*/\1/p"