Guest User

Untitled

a guest
Jan 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. word word word - word - word word - ...
  2.  
  3. perl -ne 'print "$2n" if m{^([^-]+-){849}s*(w+)}' infile;
  4.  
  5. perl -ne 'print "$2n" if m{^([^-]+-){848}.+?s*(w+)s*-}' infile;
  6.  
  7. echo "Hello-World-I-Love-You" | cut -d- -f2
  8. > World
  9.  
  10. cut -d- -f849 < infile
  11.  
  12. awk -F"-" '{split($850,a," ");print a[1];}' file
Add Comment
Please, Sign In to add comment