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. KierenH

    help with choosing a file

    Hi mzak94 I have recreated your script and it worked for me (on RHEL 5.3). Are you getting any error messages that could help? There is only one suggestion I would make in the script and one possible problem I can think of... Suggestion: Instead of if [ "$(ls -A $1)" ]; then use if [ "$(ls...
  2. KierenH

    awk command to delete specific columns

    The following awk script should do it: BEGIN{ COLS=6 for(i=2; i<=COLS; ++i) { j=(i-1) P[j]=1 } } { ID[NR]=$1 if(NR>1) { for(i=2; i<=COLS; ++i) { j=(i-1) C[j]=$i if(P[j]==1) { if(C[j]==0) P[j]=0 } ROW[NR,j]=$i } } else { for(i=2; i<=COLS; ++i) {...

Part and Inventory Search

Back
Top