From 6a1ec40741b93fa4b9c1303cb78ba82b04157bde Mon Sep 17 00:00:00 2001 From: onceupon Date: Sat, 31 Mar 2018 09:24:45 +0800 Subject: [PATCH] add grep grep string starting with a string --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index eae74e7..036317e 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ http://onceupon.github.io/Bash-Oneliner/ ## Grep +##### Grep string starting with (e.g. 'S') +```bash +grep -o 'S.*' +``` + ##### Extract text bewteen words (e.g. w1,w2) ```bash