Need to add chrs to file.. ..

Need to add chrs to file.. ..

Post by Douglas McHu » Sat, 02 Sep 1995 04:00:00



Can U help?

I have a large file.
I need certain characters added to certain positions in all lines of
the file: not to replace the existing characters.  Need this for
some dump to my DB.

Here is what I need:

I have a file with characters in each of the numbered position on each line:
12345678901234567890123456789012345678901234567890123

I need each line of the file to look like this:

"123456789"$"0123456789"$"01234567890123"$"45678901234567890123"$

Basically I am adding quotes to each field and seperating field with $.

How could I do this (or mult steps to do it) using UNIX commands?

If you could send directly to my email that would help (my trn does not
update daily and don't want want to miss any answers/solutions.)

thanks!

--
Douglas McHugh  

TRW Inc. S-2470                (213) 812-4679
One Space Park, S-2470, Redondo Beach, California 90278   USA

 
 
 

1. escape chrs in vi

anyone know how to put escape sequences in a file using vi?
i would like to put backspaces in my .plan.
thanks for any help posted or mailed.

--
        _/       _/    Will Bohan        _/_/_/
       _/      _/     Univ. of N.B.    _/    _/  

    _/_/ _/_/          _/_/         _/    _/
   _/    _/           _/_/         _/_/_/_/

2. LILO won't boot DOS

3. Need a shell script to add numbers in a file

4. RedHat 4.2 wont install cause of SB16 on IDE 0

5. Need help, need to add new /etc/rc script

6. Mosaic/Term Halfway works

7. How to add files into a tar file

8. Changing UID of nobody user?

9. Adding text to the top of a file without using temporary files

10. add file to top of another file

11. Need to produce a list of files that need to be made.

12. Need to largest file on file system

13. Need help with a file command to search for files