Posted on 2003-03-04
Hello, everyone, I'm new to this board, and I hope I'm posting to the right area.
I'm working with sed, and I'm wondering if there's a way to copy a specific part of a text file to another part of the file.
For example, if I have a one-line text file like this...
This is a test
Can I use sed somehow to make it look like this...
This is a test This is a test
I'm hoping there's a way to specify exact columns to tell sed to copy columns 1-10 to columns 30-40.
Any help would be greatly appreciated!