I am running my script file in u-boot. I want to create a file and save my contents.I tried the following ,
cat > info.txt <<- "EOF" // opening the file
echo "${mmcpart}" | tee info.txt // adding contents
echo "${root_fs}" | tee -a info.txt
EOF
and ,
echo "${mmcpart}" | tee info.txt // directly adding the contents in
file
echo "${root_fs}" | tee -a info.txt
Its not working.......... Can anyone help me to find out