当前位置:网站首页>Awk blank line filtering
Awk blank line filtering
2022-07-28 22:30:00 【5xp_ two thousand and one】
Work parameter warehousing Partially missing
Check a column csv Missing original data content awk Filtration method :
Print all data in blank lines :
cat ./samecover_xiaoqu_info_20210901.csv | grep ' Ericsson ' | awk -F'|' '{if ($4=="") print $0}' >> Blank line .csv
Empty line filtering :
cat ./samecover_xiaoqu_info_20210901.csv | grep ' Ericsson ' | awk -F'|' '{print $4}' | egrep -v '^$' | wc -l
Total row number filtering :
cat ./samecover_xiaoqu_info_20210901.csv | grep ' Ericsson ' | awk -F'|' '{print $4}' | wc -l
边栏推荐
猜你喜欢

Lin Xiaobin, head of Tencent cloud database, borrowed 100 million yuan to speculate in stocks? Insider: the amount is not true
![[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login](/img/53/c578e0d1428ea569fb412a20019924.png)
[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login

ATT&CK 威胁情报

When can I sign up for the 2022 class I constructor examination?

HCIP(8)

HCIP(8)

6K6w5LiA5qyh5pS75Ye75YiG5p6Q

Hcip seventh experiment

Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million

Overall introduction of Ruiji takeout project
随机推荐
CDN工作原理
What does GPRS network mean
[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints
How about the actual use effect of common source oscilloscope
Sword finger offer II 056. Sum of two nodes in a binary search tree (simple binary search tree DFS hash table double pointer iterator)
Soft exam network engineer
How to realize dynamic route switching and route caching in vuejs
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)
Sword finger offer II 053. Medium order successor in binary search tree (medium binary search tree DFS)
76. Minimum coverage substring (hard sliding window hash table string)
Ruiji takeout project - development of business development function Day2
微信小程序使用canvas绘图,圆形头像,网络背景图,文字,虚线,直线
Hcip experiment (14)
Sword finger offer II 057. the difference between the value and the subscript is within the given range (medium array bucket sort sliding window TreeSet)
Form validation and cascading drop-down lists (multiple implementations)
imx6q gpio复用
75. Color classification (medium array double pointer sorting)
Tensorflow serving high performance machine learning model service system
Which is the file transfer command in the basic services of the Internet
CDN working principle