在一个优惠券网站上,有人发布了一个,用来查找Godaddy的折扣码。
1-有人能解释一下这个脚本是如何工作的吗?
具体地说,我对语法感到困惑:
links url -dump | grep AI
2- shell脚本允许你像perl/python/ruby那样爬行一个站点吗?
3-是实现预期目标的最有效的方法,还是使用perl/python/ruby是更有效的技术?
4-这是道德的/合法的吗?
#!/bin/sh
gdaddy=600
while [ "$gdaddy" -lt "700" ]
do
for i in a b c d e f g h i j
让我们说,我们有很多很多关系的两种模式,优惠券和产品。
class Coupon extends \Eloquent {
protected $table = 'coupons';
public function products()
{
return $this->belongsToMany('Product');
}
}
和
class Product extends \Eloquent {
protected $table = 'products';
public fun