From cbb5ec4f601140577d4b45ec8f145d8f4bebef02 Mon Sep 17 00:00:00 2001 From: SrishAkaTux Date: Tue, 6 Aug 2013 18:53:22 -0400 Subject: [PATCH] Update README --- logs/README | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/logs/README b/logs/README index d746b63e..97143853 100644 --- a/logs/README +++ b/logs/README @@ -2,20 +2,16 @@ Filtering content from the log file =================================== cat filename.txt| grep regex | cut -d ':' -f 7 ----------------------------------------------- - - - Combination of cat, grep and cut command is used to filter data from a log file. - Cat command opens file and outputs its content to pipe '|'. After that grep reads from pipe and tries to match with - the regular expression regex in the file. Cut command looks for a character following the delimiter (-d) in the - file and removes sections from each line of files. + +- Combination of cat, grep and cut command is used to filter data from a log file. + Cat command opens file and outputs its content to pipe '|'. After that grep reads from pipe and tries to match with + the regular expression regex in the file. Cut command looks for a character following the delimiter (-d) in the + file and removes sections from each line of files. Regular Expression :%s//}g --------------------------- - - To further filter the content, file can be opened with vim editor and regex command can be applied. - - Regular expression used to retrieve chat data : :%s//}g - - This expression looks for a '}' character in the entire file and wherever it finds a character matching - similar regular expression it removes it from the file. +- To further filter the content, file can be opened with vim editor and regex command can be applied. + Regular expression used to retrieve chat data : :%s//}g + This expression looks for a '}' character in the entire file and wherever it finds a character matching + similar regular expression it removes it from the file.