摘要:
wc:统计文件的行数、单词数、字节数(word count) - wc char.txt:统计出文件char.txt的换行符个数、单词数、字节数 (char.txx有14行、13个单词、66字节) - wc -l char.txt:只统计行数(换行符个数) - wc -w char.txt:只统计单 阅读全文
posted @ 2019-09-03 20:29
早安帆
阅读(872)
评论(0)
推荐(0)
摘要:
sort:对文件的行排序 - 准备一份文件:char.txt - sort char.txt:结果会按照头字母顺序排 - sort -o sortchar.txt char.txt:排序char.txt后将结果输出到sortchar.txt(sort不加-o参数,只是排序给你看看,实际文件不会改变) 阅读全文
posted @ 2019-09-03 20:10
早安帆
阅读(1590)
评论(0)
推荐(0)
摘要:
grep命令:在文件中查找关键字,并显示所在行(Globally search a Regular Expression and Print) grep text file:在file文件中搜索text关键字 - grep int main.c:在main.c文件中查找int关键字 - grep " 阅读全文
posted @ 2019-09-03 19:37
早安帆
阅读(1634)
评论(0)
推荐(0)

浙公网安备 33010602011771号