To update a file, the classical MD method consists in rewriting it line by line from a string variable. It's ok but a bit long and sometimes it skips the 1st or first 2 lines (probably a matter if delay between erasing the old version -if any- and writing the first records).
Does a shell command exist (symetrical to "cat") to write a file from a variable?
Does a shell command exist (symetrical to "cat") to write a file from a variable?
Last edited: