echo 'task goes here' | cat - todo.txt > temp && mv temp todo.txt

or

sed -i '1s/^/task goes here\n/' todo.txt

or

sed -i '1itask goes here' todo.txt
arrow
arrow
    全站熱搜

    阿貴貴 發表在 痞客邦 留言(0) 人氣()