CC scraping from RR database on the Linux CLI

Status
Not open for further replies.

N4VX

Member
Joined
Jan 2, 2019
Messages
21
Location
WNC
Ever wanted to know ALL the frequencies used as control channels on the 1FC system, in numerical order (according to the RR database)? Run the command below on a linux system in your favorite terminal emulator and it will spit out the info with the total control channel count at the end of the file. It saves the result as 1fc.txt so you can use it with other bash scripts or maybe pipe it to op25 or DSD somehow for a scan list of sites or something.. Have fun!

Bash:
wget -O 1fc.html http://www.radioreference.com/apps/db/?sid=7118 && cat 1fc.html | grep '[7,8][0-9][0-9].[0-9]\+c' | sed 's/[><]/ /g' | awk '{print $6}' | sort -un > 1fc.cc && wc -l 1fc.cc >> 1fc.cc && cat 1fc.cc | sed 's/1fc.cc/Control Channels/g' > 1fc.txt && cat 1fc.txt
 
Status
Not open for further replies.
Top