sh 使用shell / terminal / console计算CSV文件中的标头数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 使用shell / terminal / console计算CSV文件中的标头数相关的知识,希望对你有一定的参考价值。

#/bin/sh
# Count number of headers in all CSV files in the current directory

for i in `ls`; do echo $i; head -1 $i | sed 's/,/ /g' | wc -w;done

以上是关于sh 使用shell / terminal / console计算CSV文件中的标头数的主要内容,如果未能解决你的问题,请参考以下文章

shell 用法笔记

如何在你的在线IDE中配置zsh作为默认shell

怎么用shell格机

[ubuntu setting]双击运行程序或shell

sh 使用dconf设置Gnome Terminal字体

sh 使用Terminal安装SQLite.swift CocoaPod