腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
为什么在这种情况下削减-
d
‘’不使用空间?
grep
、
cut
我对这个
cut
命令没有异议。wolf@
linux
:~$ echo ab cd efab cd wolf@
l
浏览 0
提问于2020-08-27
得票数 4
回答已采纳
1
回答
将两个特定的
Linux
命令合并为一个
linux
、
shell
我想将两个
Linux
命令组合起来:
cut
-f 1 -
d
: /etc/passwd | xargs -n 1 -I {} bash -c "echo -e \"\n{}\"; chage-l {}" >> users-list.logcat /etc/passwd |
cut
-
d
: -f7Numb
浏览 0
提问于2018-05-15
得票数 0
回答已采纳
1
回答
在Python中使用子进程运行
linux
命令时出错
linux
、
python-3.x
、
subprocess
、
os.system
在Python中,我尝试了os.system()和subprocess.call([])按照
linux
命令运行,但这两种方法最后都出现了错误。os.system("curl -s http://example.com | grep ' "Key" : * ' |
cut
-f1 -
d
" " |
cut
-b5- | rev |
cut
-b9- | rev") 在
linux
中,使用了下
浏览 4
提问于2018-09-24
得票数 0
回答已采纳
5
回答
将"10.1.1.1-10.1.1.3“格式转换为"10.1.1.1-3”格式
text-processing
、
awk
、
cut
如何将IP格式从10.100.100.11-10.100.100.3110.1.1.1-3下面是我在
cut
上的尝试,但并没有像预期的那样有效wolf@
linux
:~$ echo 10.1.1.1-10.1.1.3 |
cut
-
d
.-f 1,2,3,4wolf@
linux
:~$ wolf@
linux
:~$ echo 10.100.100.11-10.100.100.31 | <
浏览 0
提问于2020-10-20
得票数 5
5
回答
在一行中打印“`ifconfig`”中的多个IP地址
linux
这是我使用grep,
cut
and awk的尝试 inet addr:10.1.1.1 Bcast:10.1.1.255 Mask:255.255.255.0192.168.1.1 Bcast
浏览 0
提问于2018-06-29
得票数 0
2
回答
获取权限并在一行中连接它们
text-processing
这是我得到的 ls -l | tail -n+2 |
cut
-
d
" " -f1 | tr -
d
'\n'
浏览 0
提问于2019-03-23
得票数 0
回答已采纳
4
回答
如何在
Linux
中找到密码为空的用户?
linux
如何在
Linux
中找到密码为空的用户?
浏览 0
提问于2011-02-27
得票数 16
4
回答
Unix
cut
,删除第一个令牌
unix
、
cut
我有表单的输入行问题是每行都有出口n标记,所以我不能做这样的事情有没有办法告诉
cut
对指定的字段进行everything
浏览 3
提问于2010-03-12
得票数 7
回答已采纳
1
回答
如何以位而不是字节来获取
Linux
接口流量的详细信息?
shell
、
awk
、
sh
、
ifconfig
我试图通过运行以下命令来获取
Linux
盒界面中的流量细节:它以字节显示结果,但我希望结果以位为单位我试过像这样使用awk: /sbin/ifconfig eth0 |grep bytes|
cut
-
d
":" -f2|
cut
-
浏览 3
提问于2016-04-24
得票数 0
回答已采纳
1
回答
用于rrdtool提取的Cronjob
perl
、
cron
、
fetch
、
rrdtool
_4703.rrd AVERAGE |tail -2|head -n1 |
cut
-
d
":" -f2 |tr -
d
" " >> /home/zon/rrd-aggregate/agg.log rrdtoolfetch /var/www/html/cacti/rra/iboss-el-srv_
linux
_cpu_user_4704.rrd AVERAGE |tail -2
浏览 3
提问于2018-02-16
得票数 0
回答已采纳
1
回答
Linux
,如何使用带有分隔符的
cut
命令双引号?
linux
、
cut
我有一行文本文件,其中包含以下内容:如何在
linux
中使用
cut
来删除double quotes和最后一个(;),我只想把数字取值。我已经尝试过的是:当我使用这段代码时,结果是:如何使用
c
浏览 8
提问于2016-10-13
得票数 5
回答已采纳
1
回答
没有-时间式支持。
ls
、
busybox
我需要在FMTIME中输出与以下命令相同的输出:但是我的
Linux
(运行busybox)不支持我正在竞选:我有stat,awk和
cut
。
浏览 0
提问于2015-11-29
得票数 0
3
回答
如何将输出从stat传递到touch?
linux
、
shell
、
ksh
、
sunos
我在运行SunOS 5.9的服务器上有一个korn shell脚本,我需要将stat的输出传递给touch,以便在对目录执行某些操作后重置该目录的修改后的时间戳,例如mtime=$(stat -c %y ${dirvar}) touch -t "${mtime}" "${d
浏览 12
提问于2018-12-19
得票数 0
1
回答
将while循环记录传递给函数
linux
、
bash
、
shell
、
sh
、
ksh
如何在
linux
中将参数传递给函数。" |
cut
-f6 -
d
''` ref_nr=`echo "$record" |
cut
-f7 -
d
''` cny
浏览 3
提问于2020-01-30
得票数 0
1
回答
Firefox telnet不工作
firefox
、
telnet
/bin/sh port=`echo $1 |
cut
-
d
: -f 3`
浏览 0
提问于2022-11-27
得票数 0
2
回答
如何尽可能简洁地确定最新稳定的TuxOnIce版本
bash
、
sed
、
grep
、
cut
、
tail
让事情变得复杂的是,没有“当前”链接,所以我们必须遵循版本控制,这类似于(这些不存在):tuxonice-for-
linux
但也不知道怎么做(/tmp/tuxonice是索引文件):_TOI=$(grep ${_major}-1[0-9] /tmp/tuxonice |
cut
-
d
'"' -f2 | tai
浏览 3
提问于2013-03-30
得票数 0
回答已采纳
1
回答
Python脚本不识别管道符号
python-2.7
我想执行
linux
命令cksum,通过管道将它转到
cut
以提取第一个字段: cksum test_file.txt -
d
‘-f -1,但是Python不识别管道符号’AC.26‘ output = Popen(["cksum", "test_file.txt", "|
cut
-
d
' ' -f 1"],stdout=PIPE).communicate()
浏览 1
提问于2015-08-31
得票数 2
1
回答
如何在wordpress docker镜像上安装PHP Extensionson SourceGuardian?
wordpress
、
docker
、
elementor
/config/php.conf.ini:/usr/local/etc/php/conf.
d
/conf.ini WORDPRESS_DB_HOST: db:
浏览 41
提问于2020-09-24
得票数 4
回答已采纳
1
回答
多个管道使输出在文本流中为空白。
shell
、
pipe
、
stdout
、
tail
、
youtube-dl
相反,我想像您通常做的那样,两次输出管道,如下所示:ing$ echo "piping twice" > somefile $ tail -f somefile |
cut
-
d
浏览 4
提问于2020-09-05
得票数 0
回答已采纳
1
回答
是否可以在tclsh中以"exec cat spec.txt |
cut
-
d
"|“-f 2”的形式执行
linux
命令?
tcl
我有一个如下的spec.txt,在
linux
shell中运行"cat spec.txt |
cut
-
d
"|“-f 2”命令是可以的。| na | na | na | na BMC_HEALTH&quo
浏览 0
提问于2017-05-25
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Linux下cut 命令的 4 个基础实用的示例
Linux命令执行顺序控制与管道、cut、grep、wc、sort
5cut
饭拍 6 Cut
饭拍 2 Cut
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券