简体   繁体   English

我如何仅打印c files fum of Z4A8A08F09D37B73795649038408B518B51118B5179865719D760D71579D79D79D79D79D79D79D79D79D79D79D79D79D7BFF0157NDEC6B1519DEC6B1519B157B.151519.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB16.AB15FFF3F。

[英]How can I print only the c file's name and authority of the c file in Bash shell?

I want to print only the name and authority of the c file in Bash.我只想打印 Bash 中 c 文件的名称和权限。 I know how to print the names and permissions of all files with the awk command, but how can I print only the c file?我知道如何使用 awk 命令打印所有文件的名称和权限,但是如何仅打印 c 文件?

ls -la *.c | awk '{print "Permission:" $1 " Filename:"  $9 }'

Should work with this.应该与这个一起工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 C 中 fork&exec bash shell? - How can I fork&exec bash shell in C? 在bash中,如何删除名称写在文件中的文件? - In bash, how can I delete a file, whose name was written in a file? 如何使用find命令仅打印名称和文件大小? - How can I print out only the name and file size using the find command? 在Linux shell bash脚本中,如何在同一行打印到文件? - In Linux shell bash script, how to print to a file at the same line? BASH脚本遍历XML文件中的ID列表并将名称打印/输出到shell或输出文件? - BASH Script to iterate through a list of IDs in an XML file and print/output the name to shell or output file? 如何使用SSH命令将递归目录和文件列表导出到Linux Bash Shell中的文本文件? - How can I export a recursive directory & file listing to a text file in Linux Bash shell with an SSH command? 从shell / bash输出的时髦文件名? - funky file name output from shell/bash? 如何从C程序调用bash shell脚本中定义的函数 - How can I call a function defined in a bash shell script from a C program 如何仅在 Bash shell 的当前目录中仅打印包含字符串的文件? - How do I print only files that contain the string only in my current directory in Bash shell? 如何使用C ++在Linux中获取文件的所有者名称? - How to get file's owner name in Linux using C++?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM