0
尝试写入文本多个条目截至目前它只写入最后一个。 例如,23,456,789是3个独立的项目,只有789写入文本(file.txt的)使用bash脚本将多个输入文字写入文本
write2text() {
# $1 is the first argument to add2text
cd 'C:\Users\cmccabe\Desktop\annovar'
echo "$1" > file.txt
}
谢谢。
使用'>>'(which *附加*到文件中)而不是'>'。 – 5gon12eder 2014-12-02 22:31:08
非常感谢:) – user3665765 2014-12-02 22:46:43