Commit bd62b1bf authored by Wahram Andrikyan's avatar Wahram Andrikyan
Browse files

Update SPC_dler

parent 9ae6432e
......@@ -55,6 +55,6 @@ then ...
// get filesnames
for i in `ls`; do
new=$(curl -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" -I "URL/pdf/$i" -H Header | iconv -f iso8859-1 -t utf-8 | grep filename | gsed 's/^.*filename=//p' | awk '!a[$0]++' | gsed 's/"//g' | gsed "s/\r//" | gsed 's@/@@')
new=$(curl -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" -I "URL/pdf/$i" -H Header | iconv -f iso8859-1 -t utf-8 | grep filename | gsed 's/^.*filename=//p' | awk '!a[$0]++' | gsed 's/"//g' | gsed "s/\r//" | gsed 's@/@@g')
mv "$i" "$new"
done
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment