Unix command to prepend text to a file October 23, 2022 by Tarik printf '%s\n%s\n' "to be prepended" "$(cat text.txt)" >text.txt