how to overwrite a particular line of a file
hi all
what is command for overwriting a particular line (number 113) of a text file using Bash script. Regards Komal K Pal |
You can try sed specifying the line number and substituting any sequence of characters with the new text:
Code:
sed 113s/.*/new text here/ file |
All times are GMT -5. The time now is 08:05 AM. |