Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shuf-在linux中洗牌文件的内容_Linux_Tcsh - Fatal编程技术网

Shuf-在linux中洗牌文件的内容

Shuf-在linux中洗牌文件的内容,linux,tcsh,Linux,Tcsh,我正在使用一些tcsh代码,该代码使用一个名为shuf的命令: shuf $file_name > out.txt 但我的linux/bash版本似乎没有。有人知道安装它的方法吗 我的linux/tcsh是: $ echo $version tcsh 6.14.00 (Astron) 2005-03-25 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec $ uname -mrs Linux 2.6.

我正在使用一些tcsh代码,该代码使用一个名为shuf的命令:

shuf $file_name > out.txt

但我的linux/bash版本似乎没有。有人知道安装它的方法吗

我的linux/tcsh是:

$ echo $version
tcsh 6.14.00 (Astron) 2005-03-25 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec
$ uname -mrs
Linux 2.6.18-194.8.1.el5 x86_64
此外,我是服务器的用户,但我没有超级用户权限,只能在我的用户文件夹中执行本地安装


谢谢

试试你的软件包管理器或
sudo apt get install shuf

你的linux/bash?你说的对,并且输出同意你使用
tcsh
@sasha.sochka。如果你是对的,就改变它。谢谢,非常感谢!问题是,我不是超级用户,普通用户还有其他方式吗?显而易见的是向系统管理员申请,或者自己编写,几行python就可以完成这项工作。我认为你是对的,这更容易。谢谢。我找到了这个临时解决方案