hello i was update a file, removing some content from it, now that i have to new file i want it's content back to the original file
hidden=Desktop/newtodo.txt
do
echo -e "$y \t $line" >> $hidden
y=$(($y+1))
done
newtodo.txt > todo.txt
i have content in todo.txt
i updated them in newtodo.txt
, now i want to remove all what is in todo.txt
and replace them with newtodo.txt
direct assigning is not working using >
You could use output redirection
or
You could rename newtodo.txt