3 ms·
cat 1.txt http://example.net/?p= https://www.example.com/?page= ... For a given URL prefix in the file 1.txt, print URLs for pages 25-35. Desired UR
by textmode 8y ago
cat 1.txt
http://example.net/?p=
https://www.example.com/?page=
...
For a given URL prefix in the file 1.txt, print URLs for pages 25-35. Desired URL prefix is on line 100 of the file.
cat 1.sh
#!/bin/sh
l=$(exec head -$2|exec tail -1);
n=$3;while true;do
test $n -le $4||break;
echo $l$n;
n=$((n+1));
done;
1.sh 1.txt 100 25 35
cat 1.k
g:{_getenv x};
u:0:g "u";
l:0$g "l";
b:0$g "b";
e:0$g "e";
`0:{,/$u[l],x}'b _!e;
u=1.txt l=99 b=25 e=36 k 1