Using Grep To Search files & Counting Frequency For Words With Grep On Linux
Page 1 of 1
Using Grep To Search files & Counting Frequency For Words With Grep On Linux
Using Grep To Search files
- Code:
#!/bin/bash
# grep -riI "introduction" /home/user/post/
# rli above as it helps prevent searching binary files aswell as text
#check freq of words
cat text.txt
#This is a file with many words.
#Some of the words appear more than once.
#Some of the words only appear one time.
# Using sed | sort | uniq
sed 's/\.//g;s/\(.*\)/\L\1/;s/\ /\n/g' text.txt | sort | uniq -c
Similar topics
» Linux Mint 13 Files
» use linux command line to split files into 7z files
» get google search engine on linux mint
» Google Search With Bash & Curl On Linux
» Walkaround To Search Twitter From Linux Command Line
» use linux command line to split files into 7z files
» get google search engine on linux mint
» Google Search With Bash & Curl On Linux
» Walkaround To Search Twitter From Linux Command Line
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum