I have a file where i need to push all the text starting from address1 till end of file to, below [unicast]. Can anyone of you help?? Thanks for the solution. I tried getting the line number of the [unicast]. But it was of no use. Also i need to delete it after i move the text.
APP_CONF=./myfile.txt
NEW_FILE=./NewFile.txt
WANTED_STRING="address"
awk -F";" '{print $1}' $APP_CONF | while read RAW
do
if [[ $RAW == $WANTED_STRING* ]] then
echo $RAW>> $NEW_FILE
fi
done