How to auto edit the first line content in text file using shell script
Use sed
, the stream editor. Read man sed
.
sed -e '1s/01UMAGL011/01UMAKBO11' SUMMAI011.A01
In your question your replacement strings ends in "O11
" should it be "011
"?
Use sed
, the stream editor. Read man sed
.
sed -e '1s/01UMAGL011/01UMAKBO11' SUMMAI011.A01
In your question your replacement strings ends in "O11
" should it be "011
"?