Tuesday, May 7, 2013

extract certain kind of unique text from each line file using perl


Please use below command:

cat FILE_PATH | perl -pe 's/.*\"([^"]*)\".*/$1/' |sort |uniq

Replace FILE_PATH  with file path where you would liek to do search

No comments: