substitute command for UNIX

March 18, 2010 at 12:27:51
Specs: AIX
For UNIX I need to read in a file and substitute postitions 1 -16 with a fixed value (One value) through out an entire file. What is a simple way to do this?


See More: substitute command for UNIX

Report •

#1
March 19, 2010 at 09:50:09
This sed example replaces the first 16 characters in the line with the string: fixed value:

sed 's/^................/fixed value/' filename


Report •

#2
March 19, 2010 at 10:08:42
Thanks!!! That was perfect.

Report •
Related Solutions


Ask Question