Skip to content

Grep sed Regex

alexis57 edited this page Nov 3, 2016 · 1 revision

Grep

  • Using regex: cat name.txt | grep "REGEX HERE"
    • -P for using \t \n etc...
    • -o for displaying only matching

head -n 100 lob_for_AAPLL_15.txt | grep -oP "(SELL|BUY)(.*?)$"

Clone this wiki locally