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 strongm 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: *

  • Users: byh
  • Content: Threads
  • Order by date
  1. byh

    shell while loop broken after using AWK

    #!/bin/sh while read x1 x2 x3 x4 x5 x6 x7 x8 nc do eval "$(awk -v string="$nc" 'BEGIN {num=split(string,a,"/")} {len=length(string)} {lenx=length(a[num])} {printf "cdir=%s\n", substr(string,1,len-lenx-1)} END {printf "fnm=%s\n", a[num]}' )" echo 'nc='$nc' cdir='$cdir' fnm='$fnm done <...

Part and Inventory Search

Back
Top