Hey,
I'm using the Unix SED command to try and add text to the end of a file.
Here is my current example:
This adds 'username' to the beginning of every line in the users.txt file.Code:#!/bin/bash sed "s/./username/" users.txt
Example:
How can I make it so that it adds this just once at the very bottom of the file?username john1
username mary2
username hiller3
Desired output:
Cheers for your help!!john1
mary2
hiller3
username![]()




Reply With Quote