Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
3
Task/Web-scraping/UNIX-Shell/web-scraping-1.sh
Normal file
3
Task/Web-scraping/UNIX-Shell/web-scraping-1.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
curl -s http://tycho.usno.navy.mil/cgi-bin/timer.pl |
|
||||
sed -ne 's/^<BR>\(.* UTC\).*$/\1/p'
|
||||
3
Task/Web-scraping/UNIX-Shell/web-scraping-2.sh
Normal file
3
Task/Web-scraping/UNIX-Shell/web-scraping-2.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/tcsh -f
|
||||
set page = `wget -q -O- "http://tycho.usno.navy.mil/cgi-bin/timer.pl"`
|
||||
echo `awk -v s="${page[22]}" 'BEGIN{print substr(s,5,length(s))}'` ${page[23]} ${page[24]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue