Link to home
Start Free TrialLog in
Avatar of amigan_99
amigan_99Flag for United States of America

asked on

Removing line numbers from left column in config file

In a few different applications - ncacti, palo alto networks commit preview etc - if I do a copy from the browser representation of
a configuration I grab a line number and spaces. Generally I'm trying to just past this code into notepad to prepare
changes or new but similar config. Is there a windows text editor that lets me quickly and easily kill left side line numbers
and spaces? Example:

1383       access-list ADBA_ACL extended permit tcp any4 host 172.19.19.76 eq ssh
1384       access-list ADBA_ACL extended permit tcp any4 host 172.1.18.2 eq ssh
1385       access-list ADBA_ACL extended permit tcp any4 host 172.118.2.30 eq ssh
1386       access-list ADBA_ACL extended permit tcp any4 host 172.1.231.50 eq ssh
1387       access-list ADBA_ACL extended permit tcp any4 host 10.7.3.105 eq ssh

And what I want is:

access-list ADBA_ACL extended permit tcp any4 host 172.19.19.76 eq ssh
access-list ADBA_ACL extended permit tcp any4 host 172.1.18.2 eq ssh
access-list ADBA_ACL extended permit tcp any4 host 172.118.2.30 eq ssh
access-list ADBA_ACL extended permit tcp any4 host 172.1.231.50 eq ssh
access-list ADBA_ACL extended permit tcp any4 host 10.7.3.105 eq ssh

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America 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
SOLUTION
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
SOLUTION
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
SOLUTION
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 amigan_99

ASKER

These were great. pspad was the easiest imo. Love being able to alt-select delete. Boom. Number column gone!
Avatar of Arana (G.P.)
Arana (G.P.)

if you already have notepade++ as most of use do, you can try what they said above (eg exp) or just type ALT  while selecting with mouse the left side text (numbers)
Thanks Arana - I didn't realize the notepad++ also had the alt select column feature. Great to have options. The column stuff has been driving me nuts for way too long. :-)