cshell别名中的转义*字符

cshell别名中的转义*字符,shell,escaping,Shell,Escaping,cshell别名中的转义*字符 我想写一个C Shell别名,它可以找到以模式开头的文件 相当于 找到-名称“模式*” myfind模式 应该在cmd上面执行,其中myfind是别名。如何在csh别名中转义*in 别名myfind“find”-名字!***' 你不需要逃避。这就像- alias myfind "find . -name 'pattern*'" 你不需要逃避。这就像- alias myfind "find . -name 'pattern*'" 提示时的示例 /Projects

cshell别名中的转义*字符

我想写一个C Shell别名,它可以找到以模式开头的文件

相当于 找到-名称“模式*”

myfind模式 应该在cmd上面执行,其中myfind是别名。如何在csh别名中转义*in


别名myfind“find”-名字!***'

你不需要逃避。这就像-

alias myfind "find . -name 'pattern*'"

你不需要逃避。这就像-

alias myfind "find . -name 'pattern*'"
提示时的示例

/Projects/mbox/Installers/Mbox Studio Installer>alias ff
find . -iname !* -follow -print
/Projects/mbox/Installers/Mbox Studio Installer>ff "Mbox *.app"
./ROOT/Applications/Mbox Studio/Mbox Remote.app
./ROOT/Applications/Mbox Studio/Mbox Studio.app
./ROOT/Applications/Mbox Utilities/Mbox Controller.app
/Projects/mbox/Console>alias fff
find . -iname '*'"!*"'*' -follow -print
/Projects/mbox/Installers/Mbox Studio Installer>fff Mbox Studio
./NightlyBuild/DiskImages/Mbox Studio 3.6D3435.dmg
./NightlyBuild/DiskImages/Mbox Studio 3.6D3438.dmg
./ROOT/Applications/Mbox Studio
./ROOT/Applications/Mbox Studio/Mbox Studio.app
提示时的示例

/Projects/mbox/Installers/Mbox Studio Installer>alias ff
find . -iname !* -follow -print
/Projects/mbox/Installers/Mbox Studio Installer>ff "Mbox *.app"
./ROOT/Applications/Mbox Studio/Mbox Remote.app
./ROOT/Applications/Mbox Studio/Mbox Studio.app
./ROOT/Applications/Mbox Utilities/Mbox Controller.app
/Projects/mbox/Console>alias fff
find . -iname '*'"!*"'*' -follow -print
/Projects/mbox/Installers/Mbox Studio Installer>fff Mbox Studio
./NightlyBuild/DiskImages/Mbox Studio 3.6D3435.dmg
./NightlyBuild/DiskImages/Mbox Studio 3.6D3438.dmg
./ROOT/Applications/Mbox Studio
./ROOT/Applications/Mbox Studio/Mbox Studio.app

单引号或多或少等同于转义.Agreed。我应该说“不需要特别地转义”*“单引号或多或少等同于转义。同意。我应该说“没有必要特别逃避”*'s“