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 Mike Lewis 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. gnsxhj

    awk with « ^A » as separator (two caracters)

    this also works : awk -F'\\^A' '{print $1"|"$2"|"$5}'
  2. gnsxhj

    add "-"between numbers

    awk ' { x=substr($0,11) if (x) print substr($0,1,5)"-"substr($0,6,5)"-"substr($0,11) else print substr($0,1,5)"-"substr($0,6,5) }' /path/to/urfile
  3. gnsxhj

    gawk: Can't print array in END block

    well, the problem is in awk u don't need to add $ in front of the variable, so u just need to change ur old script to : arr[counter] = $0 that should be works cheers ;-)

Part and Inventory Search

Back
Top