[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:36568] Re: console-common and perl



上å·ã§ã™ï¼Ž

ã¯ãšã—ã¦ã„ã‚‹ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“ãŒï¼Œæƒ…å ±ãŒå°‘ãªã„ã®ã§ï¼Œä»¥ä¸‹ã®ã“ã¨ã‚’
試ã—ã¦ã¿ã¦ã¯ã„ã‹ãŒã§ã—ょã†ã‹ï¼Ž


> | CFAMILY=`echo $RET | perl -pe '$_ = lc; s/[^a-z0-9+\-\.\/\n]/_/g';`
> 
> ã®ã¨ã“ã‚㧠Permission denied ãŒå‡ºã¦ã„ã‚‹ã“ã¨ãŒã‚ã‹ã‚Šã¾ã—ãŸã€‚ã©ã†ã‚‚ã€perl 
> ã® -e オプションをå—ã‘付ã‘ãªã„よã†ã§ã™ã€‚
> 
> $ perl -e 'while(<>) { print; }'

-e オプションã¨ã„ã†ã‚ˆã‚Šã‚‚,

$ perl 

ã ã‘ã§ã¯ã©ã†ã§ã—ょã†ã‹ï¼Ž


ã‚ã¨ï¼Œwhich perl ã¨ã—ã¦ã¿ã¦ã¯ã„ã‹ãŒã§ã—ょã†ã‹ï¼Ž


readlink -f /usr/bin/perl ã¨ã—ã¦ã¿ã¦ã„ã£ãŸã„ãªã«ãŒperl
ã‚’æä¾›ã—ã¦ã„ã‚‹ã®ã‹ï¼Œã‚’分æžã—ã¦ã¿ã¦ã‚‚よã„ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“.