Skip to content

Instantly share code, notes, and snippets.

@mmg1
Forked from jhaddix/bgp.sh
Created June 21, 2020 10:22
Show Gist options
  • Select an option

  • Save mmg1/6b93a55aff68c41949d0b1639c48f8e2 to your computer and use it in GitHub Desktop.

Select an option

Save mmg1/6b93a55aff68c41949d0b1639c48f8e2 to your computer and use it in GitHub Desktop.

Revisions

  1. @jhaddix jhaddix created this gist Nov 21, 2019.
    6 changes: 6 additions & 0 deletions bgp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash

    expand $1 |cut -d " " -f1|sed 's/AS//g'
    echo ""
    echo ""
    lined=`expand $1 |cut -d " " -f1|sed 's/AS//g'| tr '\n' ','`