腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
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
7 第一个命令获取用户和每个用户的所有细节,
浏览 0
提问于2018-05-15
得票数 0
回答已采纳
2
回答
获取权限并在一行中连接它们
text-processing
这是我得到的 ls -l | tail -n+2 |
cut
-
d
" " -
f
1 | tr -
d
'\n'
浏览 0
提问于2019-03-23
得票数 0
回答已采纳
4
回答
如何在
Linux
中找到密码为空的用户?
linux
如何在
Linux
中找到密码为空的用户?
浏览 0
提问于2011-02-27
得票数 16
2
回答
Shell日期转换和赋值给变量
bash
、
shell
、
sh
、
ksh
is string as below Need to get yesterday date and change the format to %Y-%m-%
d
(date -
d
'str -1 days' +'%Y-%m-%
d
') dt= 2021-06-09 dt = date -<
浏览 5
提问于2021-07-10
得票数 0
2
回答
为什么在这种情况下削减-
d
‘’不使用空间?
grep
、
cut
我对这个
cut
命令没有异议。wolf@
linux
:~$ echo ab cd efab cd 但是,当我尝试使用这样的不同输入的相同命令时,我没有得到预期的输出。dynami
浏览 0
提问于2020-08-27
得票数 4
回答已采纳
3
回答
如何将输出从stat传递到touch?
linux
、
shell
、
ksh
、
sunos
我需要将stat的输出传递给touch,以便在对目录执行某些操作后重置该目录的修改后的时间戳,例如mtime=$(stat -
c
上面的代码返回错误touch: bad time specification> stat -
c
%y ${dirvar} | awk '{ split($1, a, "-"); split($2, b, ":"); split(b[3],
c
, "."
浏览 12
提问于2018-12-19
得票数 0
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 uditgaurav-
d
/ -
f
1) && \ export GOARCH=$(echo ${TARGETPLATFORM} |
cut
-
d
/ -
f</em
浏览 2
提问于2020-09-01
得票数 2
回答已采纳
2
回答
多<<<的使用
bash
、
shell
、
command-line
示例A>
C
.
D
'
C
$
cut
-
d
.-
f
1 <<< A.B <<<
C
.
D
浏览 0
提问于2019-03-12
得票数 2
回答已采纳
1
回答
为什么这行Shell在eval()中有效,但在bash中失败
linux
、
bash
、
shell
、
eval
、
cut
/bin/shGETIT="
cut
-
f
3 -
d
' '"eval "$SHOWIT|$GETIT"
浏览 3
提问于2014-07-22
得票数 0
3
回答
在使用“查找”和“exec”时转义特殊字符
bash
、
unix
、
find
、
pipe
、
mv
-name '*.mp3' -exec sh -
c
"mv "{}" `echo "{}" |
cut
-
d
' ' -
f
2-`" \;sh: 1: Syntax
浏览 2
提问于2016-02-03
得票数 1
回答已采纳
1
回答
Grep命令-以两列形式打印的文件名和每个文件中某个单词的重复次数
bash
、
shell
、
unix
、
grep
、
command
我成功地使用了for循环,但是我认为执行时间不是很有效,所以我的另一个想法是使用grep命令:我得到的输出如下:我试着使用
cut
命令,但是我想不出如何避免减少单词出现在不同文件中的次数,文件名和数字之间必须有一个空格。grep -
c
“word" */*.txt |
cut
-
d
'/' -
f
2 |
cut</
浏览 1
提问于2017-02-24
得票数 0
回答已采纳
1
回答
Linux
脚本,显示所有登录的学生的姓名和他们的模拟器的登录号码
linux
、
bash
/bin/bash dogrep -a ^$user: /etc/passwd |
cut
-
f
5 -
d
: done
浏览 16
提问于2019-06-15
得票数 0
4
回答
Unix
cut
,删除第一个令牌
unix
、
cut
我有表单的输入行问题是每行都有出口n标记,所以我不能做这样的事情有没有办法告诉
cut
对指定的字段进行everything
浏览 3
提问于2010-03-12
得票数 7
回答已采纳
3
回答
在bash中排序
linux
、
bash
、
command-line
、
shell
cut
-
f
<column_number> <filename> | sort | uniq -
c
105
Linux
500所以它必须看起来像这样:MacOS 105我该怎么做呢?
浏览 1
提问于2010-08-18
得票数 21
回答已采纳
4
回答
使用本机windows命令只从` `ipconfig`‘获取一个IP地址
linux
、
windows
\>
c
:\>ipconfig user@
linux
:~$ IPv4 Address. . . . . . . .
浏览 0
提问于2018-03-09
得票数 2
回答已采纳
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.1
浏览 0
提问于2020-10-20
得票数 5
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
回答已采纳
3
回答
Python grep和
cut
python
、
cisco
在
Linux
中,通过使用grep、
cut
或awk等工具很容易获得特定的字符串。-48Pgrep和
cut
C
9300-48Pwolf@
浏览 50
提问于2020-05-29
得票数 1
回答已采纳
1
回答
如何以位而不是字节来获取
Linux
接口流量的详细信息?
shell
、
awk
、
sh
、
ifconfig
我试图通过运行以下命令来获取
Linux
盒界面中的流量细节:它以字节显示结果,但我希望结果以位为单位我试过像这样使用awk: /sbin/ifconfig eth0 |grep bytes|
cut
-
d
":" -<em
浏览 3
提问于2016-04-24
得票数 0
回答已采纳
4
回答
ip和mac地址
linux
linux
、
terminal
我想把ip地址和mac地址作为
linux
终端的输出.我试过这个: echo "ip-address: `/sbin/ifconfig | head -2 |grep 'inet ' | tr -s ' ' |
cut
-
d
' ' -
f
3` mac-addr
浏览 11
提问于2013-11-20
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
linux常用命令
linux运维工程师常用脚本分享,不仅实用更好学
Linux运维工程师常用一句话脚本,你会几句?
Ctrl键与字母A、B、C、D、E、F、G、H和I的不解情缘!
浅述 思仪 1465C/D/F/H/L-V信号发生器
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券