I am trying to trim this, which is stored in a variable called $line.
[2012-06-18 10:37:09,026 (there is a lot of text after this, i just cut it out)
I am new to shell scripting and this is the code that i have
errortime= $line | cut -c2-10;
it is giving me an error, what is the correct code to pull the date out of the variable $line.
did you want:
instead?
Edit:
If you are using ksh, that line needs to look like this: