Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kishorerk

    Whats wrong in this "awk" command

    (/usr/lib/lpd/pio/etc/piolsvp -q 2>&1| sort | awk '$0 !~ /^#/ { if ( $1 ~ /^A/ || /^O/ || /^R/ || /^S/ ) { { if ($1 ~ /-$SYS3D_DC_SITE(:.*)?$/) print $1 ; else next } } print $1 }' 2>&1) Output ----------- OLB2-DV08 OLB2-DV09 U4910 u4812 Should be: --------- A045-DV08 A045-DV09 OLB2-DV08...
  2. kishorerk

    Whats wrong in this "awk" command

    (/usr/lib/lpd/pio/etc/piolsvp -q 2>&1| sort | awk '$0 !~ /^#/ { if ( $1 ~ /^A/ || /^O/ || /^R/ || /^S/ ) { { if ($1 ~ /-$SYS3D_DC_SITE(:.*)?$/) print $1 ; else next } } print $1 }' 2>&1) Output ----------- OLB2-DV08 OLB2-DV09 U4910 u4812 Should be: --------- A045-DV08 A045-DV09 OLB2-DV08...

Part and Inventory Search

Back
Top