Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

wget files matching pattern

# Getting http://some/site/*my_pattern*
SITE="http://some/site/"
PATTERN="my_pattern"
wget -nv -O- $SITE | 
  grep $PATTERN | 
    awk -v pat=$PATTERN -F '"' '{ for (i=1; i<=NF; ++i) { if ($i ~ pat) print $i } }' |
      while read x; do 
      	if [[ ! $x = ">" ]] ; then
      	  wget $SITE$x &>/dev/null
      	  echo $x
      	fi
Comment

PREVIOUS NEXT
Code Example
Shell :: remove unnamed docker images 
Shell :: installing kubernetes with kops 
Shell :: convert csv to json powershell 
Shell :: print first lines of file linux 
Shell :: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 
Shell :: express-generator with ejs 
Shell :: v-restore-user command not found 
Shell :: install woeusb in ubuntu 
Shell :: ubuntu install jdk 14 
Shell :: find user shell 
Shell :: hosting spa on github pages 
Shell :: git push rejected 
Shell :: npm i socket.io 
Shell :: alpine sudo 
Shell :: delete remote git branch 
Shell :: npm ERR! fatal: not a git repository: /home/node/app/../../.git/modules/ 
Shell :: look word in files command 
Shell :: tar gz linux command 
Shell :: remove symfony ubuntu 
Shell :: center dock icons ubuntu 
Shell :: npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli 
Shell :: how to install tensorflow on anaconda 
Shell :: installing rspec gemfile 
Shell :: run jar file command line 
Shell :: dd write iso to usb linux 
Shell :: pulling and running docker image 
Shell :: react testing using jest along with code coverage 
Shell :: .sh file example 
Shell :: ubuntu server login logs 
Shell :: remove from staging git 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =