Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. ID:342N000390AAAAAAAA 07/14/15 10:26 (MV90 )
  2. * Register Data Imported
  3. * Warning - No Profile Data
  4. 07/14/15 10:24 05/13/15 08:16 15 1 5956
  5.  
  6. gzcat file.gz | awk '/No Profile Data/{printf "%sn%sn%sn", b, a, $0} {b=a;a=$0}'
  7.  
  8. gunzip -c file.gz | sed -e ':a;N;$!ba;s/n/ /g' -e '/^[[:space:]]/d' -e 's/^ID:([[:alnum:]]*).*Warning - No Profile Data.*/1/' -e '/^ID:/d'
  9.  
  10. zcat nogrep.gz | paste - - - | sed -e '/^[[:space:]]/d' -e 's/^ID:([[:alnum:]]*).*Warning - No Profile Data/1/' -e '/^ID:/d'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement