splitting a record and adding a record to a file
Hi,
I am new to UNIX scripting and woiuld appreicate your help...
Input file contains only one (but long) record:
aaaaabbbbbcccccddddd.....
Desired file:
NEW RECORD #new record (hardcoded) added as first record - its length is irrelevant#
aaaaa
bbbbb
ccccc
ddddd
...
...
a,b,c,d.... could be anything, including spaces.
I 'feel' awk should be the best tool, but my lack of knowledge...
thank you very much.
|