For example, a temp.txt file contains information like below:  adsf on line jhkjhvjdbvjvbvbdjkvn  qerwtt on line fdgdgdgdd  qwqertg on line safffasffaf  wrt on line adaddsdI want to grep for on line in all the lines of the file and write the remaining part of the lines to another file, i.e after the process on temp.txt file the new file should contain:  on line jhkjhvjdbvjvbvbdjkvn  on line fdgdgdgdd  on line safffasffaf  on line adaddsd  How can I do that in linux terminal?
grep all the lines in a file and write line to a file from the pattern matching point
text processing;files;grep;vi