[SOLVED] Piping Problem

Hey,
I want to create a new file (devices) with the 39th and the 40th character of the line wich is in the array line and in the file drivers.
But unfortunately my try doesn't work:

sed -n '$line[0]p' drivers | cut -c 39-40 | echo >>devices 

Perhaps one of you can help me. Thank you!

emoly

---------- Post updated at 01:24 PM ---------- Previous update was at 12:02 PM ----------

fixed it by myself

 echo $(sed -n '$line[0]p' drivers | cut -c 39-40) >>devices