Im writing a shell script which has to select the strings based on the position.
but the problem is there is no field seperator.
Normally a datafile contains 2000 records (lines) and each line is of size 500 charecters.
I want to select the fields from all the lines which matches the charecter positions.
ex: from position(011:025) position(061:095) position(201:250) position(311:318) position(411:425) position(471:500).
aah I see. I thought OP was meant to select data based on characters from each line, without knowing the columns or having a field separator, therefor I asked for the sample input, it proved to be very dumb though
the dd program read the input file (if=filename), convert data blocks of 500 characters (cbs=500) from fixed to variable (conv=unblock); the specification of the output block size, may be omited (obs=500).
the stderr is redirected to null because dd display stats.