Replacing line in text file by wildcard - 04/10/15 01:33 AM
Code:
write -w<$nick> requests.txt $2- $+ ( $+ $nick $+ )
This part finds the line where the user's nickname is written.
Then it inserts the new $2- with his nick.
How do I make this so it deletes the old line and replaces it with the new one instead of inserting?