I have a big file with some record which will be having different values than others.
Actual data file:
000000106500000000000129201300000U1E4600000060000+00000020400+00000002532+000000 0000001065000000000001182013000010144700002090000+00000335156+00000006776+000000 0000001065000000000003012014999999999924835390500+07164327872+00447479302+000000 0000001065000000000001102013000004QE8200000150000+00000056450+000000021
$ 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?