I'm having trouble concatenating this string together. My goal is to have /folder/p/t/e
test.txt contains the string "test".
cat test.txt|cd /folder/p/`awk '{print substr($,0,1)}'`/`awk '{print substr($0,1,1)}'`
it is outputting /folder/p/t/ so I think there is something wrong with the second substr part of it.
Could anyone help shed light on how I can do this?
Thanks!
