- 514 名前:login:Penguin mailto:sage [2021/07/06(火) 18:03:36.02 ID:/ONOnJMp.net]
- sedで/パターン/と番号dを併用する方法ってないですか
$ cat foo.txt title AAA https://example.com/foo.html https://example.com/1.jpg https://example.com/2.jpg https://other.com/bar1.html https://other.com/bar2.html これで2行目以外のhtmlを消したいんです 行数が不定なので決め打ちできません /html/2!dができたらいいんですが gentooはインスコに3日かかったってミサワ自慢聞いたことあるけどマジなんだろうか
|
|