Append text to file using sed September 26, 2023 by Tarik Use $ a. sed -i "$ a some text" somefile.txt