I have a interface file that generated from a database and what I would like is a script that will do the following please.
I need the script to look from line 2 in the file and always in column position 22 there will be either 1,2,3,4,5,6. If 2 appears then I need to move this file to another location. The file could contain 100's on lines.
I have attached an example file.
When the file is moved I would like to rename it to Completions_rejected_ followed by the date and time stamp of when the file was created.