Hi
I am using running one perl command using shell scripts, but it won’t take variable
I am passing following things on command line
./domcheck.sh domainname.com
but perl unable to understand $1 even its not highlight as variable.
I am using running one perl command using shell scripts, but it won’t take variable
Code:
#!/bin/sh ar="/usr/local/apache/conf" perl -00ne '/$1/ && print $_' $ar/httpd.conf > domstat.txt
./domcheck.sh domainname.com
but perl unable to understand $1 even its not highlight as variable.
Comment