SHARE
TWEET

Untitled

a guest Feb 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 13 Sun Sep  9 12:14:38 2012 : [P] Reproducer has the 167 number
  2. 13 Sun Sep  9 12:14:38 2012 : [P] Customer has the 12.14.19.9
  3. 13 Sun Sep  9 12:14:38 2012 : [P] Customer has the 12.14.89.9
  4. 13 Sun Sep  9 12:14:38 2012 : [P] Reproducer has the 170 number
  5. 13 Sun Sep  9 12:14:38 2012 : [P] Customer has the 12.4.89.16
  6.    
  7. grep Customer Neigh.log | cut -d " " -f 5- | cut -d ":" -f 1-4 | cut -d " " -f 1,8
  8.    
  9. for i in *.txt; do awk '/Customer/ { print $5, $NF > FILENAME".out" }' "$i"; done
  10.    
  11. for i in *.txt; do awk '/Customer/ { out=FILENAME".out"; print $5, $NF > out }' "$i"; done
  12.    
  13. if [ $# -ne 1 ]; then
  14.   echo Please enter a filename
  15. else
  16.   awk '/Customer/ {print $5, " ", $12}' $1
  17. fi
  18.    
  19. awk '$0~/Customer/{print $5,$12}' *.txt
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top