If you want to set up a Windows 8 system as a Secure Shell (SSH) server, you can use freeSSHd, which as the name implies is free, to do so. I had problems getting it to run as a service on a Windows 8 system, though.
[ More Info ]
|
|
[ More Info ]
fgrep
and wc
commands. E.g.,
suppose you wish to count the number of times the letter "A" occurs in a file
named temp.txt.
fgrep -o A temp.txt | wc -l
The "-o PATTERN" option for fgrep tells it to show only the part of a
matching line that matches PATTERN where PATTERN is what you are searching
for, in this case the letter "A". Piping the output to wc -l
will count the number of times the PATTERN appears in the file.