Forgot to remove these files
These fish functions were converted in earlier commits to executable scripts located in `~/.local/bin/`. They do not need to be fish functions anymore.
This commit is contained in:
parent
5a5f1450a1
commit
23f1ea90df
@ -1,20 +0,0 @@
|
|||||||
function 4chandl -d "Download media from 4chan thread"
|
|
||||||
if ! count $argv > /dev/null
|
|
||||||
echo 'No URL specified! Give the URL to thread as the only argument.'
|
|
||||||
end
|
|
||||||
set url $argv[1]
|
|
||||||
|
|
||||||
set regex_4cdn '\/\/is2\.4chan\.org\/[a-z]+\/[A-Za-z0-9]+\.[A-Za-z]{3,4}'
|
|
||||||
|
|
||||||
set total (curl -ks $url | grep -oE $regex_4cdn | uniq | wc -l)
|
|
||||||
echo total: $total
|
|
||||||
set counter 1
|
|
||||||
|
|
||||||
for image_url in (curl -k -s $url | grep -Eo $regex_4cdn | uniq | sed 's/^/https:/')
|
|
||||||
echo -n Downloading image $counter of $total...
|
|
||||||
wget --no-check-certificate -q -nc $image_url
|
|
||||||
echo ' Done'
|
|
||||||
set counter (math $counter + 1)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
@ -1,3 +0,0 @@
|
|||||||
function backup -d "backs up a file and appends to its name the date and time of backup"
|
|
||||||
cp $argv[1] $argv[1].bak.(date +"%Y%m%d%H%M%S")
|
|
||||||
end
|
|
Loading…
Reference in New Issue
Block a user