Sample Script

Below is the code. Its the 1st line of a file.

[123 web int 1 09:30:45 2013]

How can I remove the bracket and display like below.

123 web int 1 09:30:45 2013

I dont want to use AWK or SED or PERL. I need to use only the bash shell scripting commands to do it.

sed -s 's/\[//g;s/\]//g'

Not sure if it is homework but......

You could try modifying this as a starter:-

http://www.unix.com/showthread.php?p=302871693\#post302871693

you can use the substitution example take the value in variable and use

${var/[//}