Stuff…

I know I will forget.

Stuff… header image 4

Entries Tagged as 'One Liners'

Default a port on old Cisco 3548

June 20th, 2010 · No Comments

I wanted to default the configuration of a number of ports on an old Cisco 3548. The latest version of IOS support on this system does not support the range command, so, had to manually run a small script (bash 1 liner on linux) and paste in the contents:
$ for i in `seq 40 [...]

[Read more →]

Tags: Cisco · Coding · Networking · One Liners · Uncategorized

Remove ^M’s from a file or more

January 26th, 2009 · No Comments

How to remove ^M from within a file:

perl -pi -e ‘y/\015//d’filename

[Read more →]

Tags: Coding · One Liners · Operating System