如何从启动时运行的脚本打开文件
问题描述:
我正在u-boot中运行我的脚本文件。我想创建一个文件并保存我的contents.I尝试以下,如何从启动时运行的脚本打开文件
cat > info.txt <<- "EOF" // opening the file
echo "${mmcpart}" | tee info.txt // adding contents
echo "${root_fs}" | tee -a info.txt
EOF
,并echo "${mmcpart}" | tee info.txt // directly adding the contents in
文件
echo "${root_fs}" | tee -a info.txt
它不工作....... ...任何人都可以帮我找出
为什么“c”标志?这里没有C。 – FredK