unix指令請問 - Linux

By Liam
at 2018-01-03T09:13
at 2018-01-03T09:13
Table of Contents
我是unix新手
目前遇到兩個問題想求解
1.檔名data
A欄 | B欄
111 | 321
222 | 123
如何用grep跟wc命令
只查尋跟計算‘B欄’裡包含2的行數
2.同上題,我要用sed替換1成a
我是使用sed ‘s/1/a/g’
但我想把替換的資料output and save
成另一個檔名data2
另存的命令要怎麼接呢
--
目前遇到兩個問題想求解
1.檔名data
A欄 | B欄
111 | 321
222 | 123
如何用grep跟wc命令
只查尋跟計算‘B欄’裡包含2的行數
2.同上題,我要用sed替換1成a
我是使用sed ‘s/1/a/g’
但我想把替換的資料output and save
成另一個檔名data2
另存的命令要怎麼接呢
--
Tags:
Linux
All Comments

By Faithe
at 2018-01-07T21:41
at 2018-01-07T21:41

By Skylar Davis
at 2018-01-10T02:28
at 2018-01-10T02:28

By Annie
at 2018-01-14T11:20
at 2018-01-14T11:20

By Emma
at 2018-01-19T02:28
at 2018-01-19T02:28

By Ina
at 2018-01-21T20:14
at 2018-01-21T20:14

By Gilbert
at 2018-01-26T02:48
at 2018-01-26T02:48

By Yedda
at 2018-01-29T20:55
at 2018-01-29T20:55

By Mia
at 2018-02-03T19:29
at 2018-02-03T19:29

By Ina
at 2018-02-04T07:08
at 2018-02-04T07:08
Related Posts
samba和git

By Faithe
at 2018-01-02T16:39
at 2018-01-02T16:39
如何在centos 6.9中延伸磁碟區?

By David
at 2018-01-02T15:35
at 2018-01-02T15:35
samba和git

By Skylar DavisLinda
at 2018-01-02T15:14
at 2018-01-02T15:14
NAT 無法建立 (eth<->wlan)

By Belly
at 2018-01-01T12:21
at 2018-01-01T12:21
kali安裝問題

By Lauren
at 2017-12-30T13:53
at 2017-12-30T13:53