腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
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: -
f
7Numb
浏览 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
-
f
1 -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
1
回答
运行带有长参数的
linux
命令时出现文件名过长错误
linux
、
paste
、
cut
我尝试从100个文件中提取一列,然后使用下面的
linux
命令将它们组合在一起:
cut
:我得到了这个错误:有什么建议
浏览 2
提问于2016-04-16
得票数 1
1
回答
如何以位而不是字节来获取
Linux
接口流量的详细信息?
shell
、
awk
、
sh
、
ifconfig
我试图通过运行以下命令来获取
Linux
盒界面中的流量细节:它以字节显示结果,但我希望结果以位为单位我试过像这样使用awk: /sbin/ifconfig eth0 |grep bytes|
cut
-d":" -
f
2|
cut
-d&qu
浏览 3
提问于2016-04-24
得票数 0
回答已采纳
4
回答
Unix
cut
,删除第一个令牌
unix
、
cut
我有表单的输入行问题是每行都有出口n标记,所以我不能做这样的事情有没有办法告诉
cut
对指定的字段进行everything
浏览 3
提问于2010-03-12
得票数 7
回答已采纳
4
回答
如何在
Linux
中找到密码为空的用户?
linux
如何在
Linux
中找到密码为空的用户?
浏览 0
提问于2011-02-27
得票数 16
1
回答
多个管道使输出在文本流中为空白。
shell
、
pipe
、
stdout
、
tail
、
youtube-dl
相反,我想像您通常做的那样,两次输出管道,如下所示:ing$ echo "piping twice" > somefile $ tail -
f
somefile| <e
浏览 4
提问于2020-09-05
得票数 0
回答已采纳
1
回答
Linux
,如何使用带有分隔符的
cut
命令双引号?
linux
、
cut
我有一行文本文件,其中包含以下内容:如何在
linux
中使用
cut
来删除double quotes和最后一个(;),我只想把数字取值。我已经尝试过的是:当我使用这段代码时,结果是:如何使用
c
浏览 8
提问于2016-10-13
得票数 5
回答已采纳
3
回答
在Solaris上,获取当前主机的完全限定域名(fqdn)的简单方法是什么?
solaris-10
当我想要
Linux
上的完全限定域名时,我可以写.为了在Solaris上得到同样的东西,有必要写...。
浏览 0
提问于2011-02-01
得票数 3
回答已采纳
1
回答
没有-时间式支持。
ls
、
busybox
我需要在FMTIME中输出与以下命令相同的输出:但是我的
Linux
(运行busybox)不支持我正在竞选:我有stat,awk和
cut
。
浏览 0
提问于2015-11-29
得票数 0
1
回答
将while循环记录传递给函数
linux
、
bash
、
shell
、
sh
、
ksh
如何在
linux
中将参数传递给函数。" |
cut
-
f
6 -d ''` ref_nr=`echo "$record" |
cut
-
f
7 -d ''` cny
浏览 3
提问于2020-01-30
得票数 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
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
2
回答
如何尽可能简洁地确定最新稳定的TuxOnIce版本
bash
、
sed
、
grep
、
cut
、
tail
让事情变得复杂的是,没有“当前”链接,所以我们必须遵循版本控制,这类似于(这些不存在):tuxonice-for-
linux
但也不知道怎么做(/tmp/tuxonice是索引文件):_TOI=$(grep ${_major}-1[0-9] /tmp/tuxonice |
cut
-d '"' -
f
2 | tai
浏览 3
提问于2013-03-30
得票数 0
回答已采纳
1
回答
Firefox telnet不工作
firefox
、
telnet
/bin/sh port=`echo $1 |
cut
-d : -
f
3`
浏览 0
提问于2022-11-27
得票数 0
4
回答
如何在bash变量中使用
linux
命令
linux
、
bash
、
variables
我正在尝试创建一个bash脚本来执行以下命令的相同操作:输出为/bin/bashoutput1=$(dig -x $IP) grepg="grep PTR |
cut
-d ' ' -
f
2 | grep google |
cut
-
f</e
浏览 6
提问于2013-09-27
得票数 1
回答已采纳
1
回答
Docker: standard_init_
linux
.go:211: exec用户进程导致"exec格式错误“
linux
、
docker
、
build
sudo docker buildx build -
f
build/Dockerfile --platform
linux
/arm/v7,
linux
/arm64,
linux
/amd64 -t uditgauravbuild/bin /usr/local/bin RUN export GOOS=$(echo ${TARGETPLAT
浏览 2
提问于2020-09-01
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Linux下cut 命令的 4 个基础实用的示例
Linux命令执行顺序控制与管道、cut、grep、wc、sort
5cut
饭拍 6 Cut
饭拍 2 Cut
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券