The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-30-2007
iAm4Free iAm4Free is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 18
Quote:
Originally Posted by Klashxx View Post
Try :


Code:
awkvarrep() {
awk -F'|' '$1~/'"$1"'/{printf "%-10s %-30s %-15s %-30s %-15s\n", $2,$3,$4,$5,$6}' testfile
}
Can you explain why whe need to put it in double quotes pls.