标签: csh

没有csh或tcsh?

在 /bin 中,我看到 bash,但没有看到 csh 或 tcsh。当我在我的主目录中创建一个“.cshrc”文件时,它没有效果;这就是我发现这个问题的方式。

所以问题是:如何切换到 csh/tcsh 类型的登录?

谢谢你的帮助。

command-line tcsh csh

9
推荐指数
2
解决办法
4万
查看次数

如何在 csh 中为命令的输出设置变量?

我在文本文件中有一个数字,例如:

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)

command-line text-processing csh

5
推荐指数
1
解决办法
8053
查看次数

如何运行 csh 脚本来安装 f2c?

我需要在 Linux 中安装 f2c。鉴于步骤;

  1. 下载安装脚本:下载install_f2c_linux.csh

  2. 运行安装脚本

    # 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)

如何解决问题?

command-line scripts software-installation csh

5
推荐指数
1
解决办法
1166
查看次数