Formatting File Using Shell Script

view full story

http://www.unix.com – Hi Team, We have a requirement where we need to format input file using shell script by meeting the below conditions. 1. 1. Ignore first 549 characters of that file. 2. 2. After that we need to make a file of 100 characters per line, repeat it until the 3rd condition is met. 3. 3. If the word ‘CONTRA’ is found in any line, where in that line C is at character position 65 and ends at A with the character position at 70 then stop the processing, rest of data needs to be removed including the ‘CONTRA’ line from that file. For Ex if the in (HowTos)