You can do it with 'awk'
Code:
awk ' {
print substr($0,38,4) substr($0,25,1) # print [25][38-41]
print substr($0,4,4),substr($0,1,2) # print [4-7] [1-2]
} ' a.txt
$0
The record read from file
substr(STRING, START [, LENGTH])
This returns a LENGTH-character-long substring of STRING, starting
at character number START. The first character of a string is
character number one. For example, `substr("washington", 5, 3)'
returns `"ing"'.
If LENGTH is not present, this function returns the whole suffix of
STRING that begins at character number START. For example,
`substr("washington", 5)' returns `"ington"'. The whole suffix is
also returned if LENGTH is greater than the number of characters
character number one. For example, `substr("washington", 5, 3)'
returns `"ing"'.
If LENGTH is not present, this function returns the whole suffix of
STRING that begins at character number START. For example,
`substr("washington", 5)' returns `"ington"'. The whole suffix is
also returned if LENGTH is greater than the number of characters
remaining in the string, counting from character number START.
print statement
The `print' statement does output with simple, standardized
formatting. You specify only the strings or numbers to be printed, in a
list separated by commas. They are output, separated by single spaces,
followed by a newline. The statement looks like this:
print ITEM1, ITEM2, ...