amigan_99
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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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)
ASKER
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. :-)
ASKER