hi,
i'm familiar with the commands 'more' and 'cat', but am unsure about their differences; and would be grateful if someone could clarify them for me. I needed to pass a parameter from a lower level script to my current script. To do this, I redirected the value to a file and in the main script assigned the read value into a new variable. When I scripted var=`more file`; and used var it errors with ^J characters in the output. When I used var=`cat file`, it passed variable if conditionals successfully. Out of curiosity, I'd appreciate someones help to reason this out.
thanks
shanil bhowani
i'm familiar with the commands 'more' and 'cat', but am unsure about their differences; and would be grateful if someone could clarify them for me. I needed to pass a parameter from a lower level script to my current script. To do this, I redirected the value to a file and in the main script assigned the read value into a new variable. When I scripted var=`more file`; and used var it errors with ^J characters in the output. When I used var=`cat file`, it passed variable if conditionals successfully. Out of curiosity, I'd appreciate someones help to reason this out.
thanks
shanil bhowani