You are located on a Linux system directory (/data/oklahoma_mesonet/2009/ for th
ID: 3637374 • Letter: Y
Question
You are located on a Linux system directory (/data/oklahoma_mesonet/2009/ for this exercise) containing Oklahoma Mesonet daily data for an entire year with each file containing all of the data for a single day. the file structure looks like:
20090101_meso.dat
20090102_meso.dat
20090103_meso.dat
20090104_meso.dat
....ect.....
Where the file name is 4-digit year, 2 digit month, and 2 digit day.
Inside each file data from teh entire network is contained. This data looks like:
101 ! (c) 2009 Oklahoma Climatological Survey and the Oklahoma Mesonet - all rights reserved
22 2009 12 10 00 00 00
STID STNM TIME RELH TAIR WSPD
ADAX 1 660 88 -10.8 0.6
ALTU 2 660 78 -8.9 2.9
ANTL 4 660 94 -10.4 0.7
ARNE 6 660 -996 -996 -996
....ect....
What one line command would you run to copy all fo the June files to a folder called "data" (already created) in your home directory?
Explanation / Answer
awk '/WOOD /' '/-996/' /data/200912* | wc -l
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.