I have a big file with some record which will be having different values than others.
Actual data file:
$ grep -n "9999999999" BADINS0000001065_000000000020140301.dat
I wanted to append this record into bottom of the file, simply if I have ~100 records in file if my record position is somewhere in the file, I have to find, remove from that location (completely) and need to be appended to end of the file (Bottom of the file).
There are many files in directory I want to make it automate this process for every run. File name is BADINS0000001065_0000000000* always same.
Would you please help me to achieve this?