Hi,
I have tried many times to add the string into the first line of the file or the middle of the file but could not find the solution.
I first tried by
$echo "paki" >> file
This code only append paki string at the end of file "file" but how can i add this "paki" into the first line or the midd of the file.
I have tried many times to add the string into the first line of the file f1 or the middle of the file f1. This file f1 already consists of 10 numbers of lines but could not find the solution.
I first tried by
$echo "paki" >> file
This code only append paki string at the end of file "file" but how can i add this "paki" into the first line or the midd of the file.
ali hussain, this is a warning. Please stop posting homework questions and do not create multiple threads for the same question. Please follow the rules, or you risk getting banned from the site.