Home » Infrastructure » Unix » Memory default(core dump)
Memory default(core dump) [message #98028] Sun, 16 November 2003 07:27 Go to next message
Kapil
Messages: 145
Registered: May 2002
Senior Member
i am using a sed utility to replace some characters in my shell scripts. it works gr88 for all most all recds in the flat file, but except for one recd it says memory core dump. becoz that line huge.. so when i break that line into 2. sed works gr8 again. how should i solve without breaking that recd in 2 lines. anyone can answer this? please need help.
Re: Memory default(core dump) [message #98029 is a reply to message #98028] Sun, 16 November 2003 12:51 Go to previous messageGo to next message
pwl
Messages: 22
Registered: May 2000
Junior Member
kapil,
The simplest answer is to use Perl. It does not come
up against lots of the UNix restrictions for
sed/awk/shell commands.

Alternatively, continue as you have done and break it
into 2, then reunite.
Or you might try the dd command.
dd | if=your input file | sed .... > outputfile

This might work as dd uses individual bytes, but that
would restrict your options for what you can change.
Re: Memory default(core dump) [message #98030 is a reply to message #98029] Sun, 16 November 2003 16:38 Go to previous message
Kapil
Messages: 145
Registered: May 2002
Senior Member
Peter,
Thanks a lot man, I know even "tr" works gr8, but i can replace only one char at a time. is it possible to replace a char with a string using "tr" or "dd". Thanks again.
Previous Topic: Row Lock vs Table Lock in Oracle
Next Topic: Cron job to login into SQLPLUS and run a script
Goto Forum:
  


Current Time: Tue Nov 26 04:42:13 CST 2024