File: dlsearchresult

package info (click to toggle)
rccp 0.9-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 244 kB
  • ctags: 44
  • sloc: ansic: 830; sh: 256; perl: 134; makefile: 71
file content (15 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#CCCP script by hampa@chello.se
#usage (you need to pipe to this script):
#./cccp -s "*my search querey*1" | ./dlsearchresult
#This command description is only valid since version 0.79.0:
#/DL *nick*[localfic]*remotefic*filesize
#/DL *nick*[localfic]*remotefic*[start_pos]



while read -r line
do
echo $line | awk -F\| '{printf("\"*%s**%s*%s\"\n", $1, $2, $3)}' | xargs -n1 -exec cccp -O -d
#echo $line | awk -F\| '{printf("\"*%s**%s*\"\n", $1, $2)}' | xargs -n1 -exec cccp -O -d
done