Link to home
Start Free TrialLog in
Avatar of Scoteq
Scoteq

asked on

Editing a big file in vi - Out of register space (ugh)

I am editing a very big log file (1.2million lines) on unix in vi. If I try to delete a lot of lines (e.g. 100000) with the dd command I get the message "Out of register space (ugh)". Does anyone know a way around this? (and yes, I know I should have cleaned the file up a bit sooner!)
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Scoteq
Scoteq

ASKER

Sorry to take so long to get back to you, in fact I was waiting for my files to become big again to test! This command does indeed seem to work were 'dd' fails.
Thanks for your help.