在 /bin 中,我看到 bash,但没有看到 csh 或 tcsh。当我在我的主目录中创建一个“.cshrc”文件时,它没有效果;这就是我发现这个问题的方式。
所以问题是:如何切换到 csh/tcsh 类型的登录?
谢谢你的帮助。
我在文本文件中有一个数字,例如:
int_width: 5230
Run Code Online (Sandbox Code Playgroud)
我想将此数字 (5230) 设置为csh
. 什么是正确的形式?(grep 在设置前工作)
set WIDTH = "$(grep int_width *.txt | sed 's/[^0-9]*//g')"
Run Code Online (Sandbox Code Playgroud) 我需要在 Linux 中安装 f2c。鉴于步骤;
下载安装脚本:下载install_f2c_linux.csh
。
运行安装脚本
# chmod +x install_f2c_linux.csh
# ./install_f2c_linux.csh
Run Code Online (Sandbox Code Playgroud)我在根目录和用户目录中运行第二步。但是,它说
curl: Command not found.
tar: f2c.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
gunzip: No match.
f2c: No such file or directory.
Run Code Online (Sandbox Code Playgroud)
如何解决问题?