Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
PAULDC
Apr 27th, 2011
159
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!bin/bash
count
=
0
echo
$1
$2
while
read
word1
do
printf
"%s
\n
"
"
$word1
"
if
[
"$2"
=
"
$word
"
]
then
count
=
"
$((count+1)
)"
fi
done
<
$1
printf
"%s = %d"
$2
$count
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
CSS | 20 min ago | 0.72 KB
Instant money using older Node
CSS | 20 min ago | 0.72 KB
Crypto Hack
CSS | 20 min ago | 0.72 KB
This month smells like money
CSS | 20 min ago | 0.72 KB
Addictol Out of Memory Crash
3 hours ago | 57.10 KB
ramdisk-cgdroot.fs/etc/rc
Bash | 8 hours ago | 3.46 KB
Boolean34
9 hours ago | 0.01 KB
new test
15 hours ago | 0.01 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!