kazuhirokomoda posted at Jun 02, 2016
awk
「芸」というほどのものでもないですが・・・笑
前提
awk --version
GNU Awk 3.X.X
やりたいこと
csvファイル5列目にあるタイムス ...
- 3
junk616 posted at Oct 15, 2014
awk
date
14:25 - 15:37
awk '{if($2 ~ /^14:2[5-9]/ || $2 ~ /^14:[3-5][0-9]/ || $2 ~ /^15:[0- ...
- 2
ikemonn posted at Apr 30, 2014
awkについて
正規表現
#awkの文法
awk 'condition {actions}' file.txt
↓
# $0は全体を表す。 # ~ /pattern/が正規表現
- 12
yusuzuki posted at Dec 02, 2016
LINUX x AWK: AWKってなんじゃらほい。
シェル芸について調べてた時にAWK使えたほうがいいよAWK!
ってな情報に出会ったんだけどAWKってなに?おーく?豚なの? サンプルcsv
#
- 4
- 1
SYutaka posted at Jan 18, 2020
awkについてメモ
em>awk -f sample.awk sample.txt
以下のように出力される。 $ awk -f sample.awk ...
- 1
yarashi1226 posted at Dec 05, 2019
AWKコマンドとは?
AWK アドベントカレンダー1日目
AWK(オーク)コマンドとは?
行と列(もしくは行のみ)でできたテキストデータを処理するためのコマンドです。 例えば、次 ...
- 2
tech-aki posted at Oct 17, 2018
awk コマンド
awkコマンド
意味
空白などで区切られたテキストを処理するコマンドです。 演算機能もあり、プログラミング言語
オプション
-f ファイル名 awkスクリ ...
- 0
pocket8137 posted at Nov 29, 2017
awkに関するメモ
awk
■ 特徴
Cに近い
高速
awkだけで、処理を実装可能
■ 基本構文
awk パターン {アクション}'
cat text.txt |
- 2
glires posted at Oct 23, 2017
AWKの備忘録
Bash
$ awk '{ print length }' foo.txt # 改行文字を除き、各行の文字数を出力
$ awk '{ print le ...
- 0
yulily@github posted at Jun 05, 2017
awkメモ
切り文字を変更
awk -F, '{print $1}'
出力結果を「,」区切りにし、1列目を出力
NR
行数を表す
ORS
出力レコード区切り文字
awk ...
- 0
Search syntax
- title:Git
- Containing "Git" in title
- body:Ruby
- Containing "Ruby" in body
- code:function
- Containing "function" in code
- tag:Rails
- Tagged with "Rails"
- user:qiita
- Created by qiita
- stocks:>3
- more than 3 stocked
- created:>2021-02-04
- Created after 2021-02-04
- updated:>2021-02
- Updated after 2021-02-01
- -tag:Ruby
- Not containing "tag:Ruby"
- Ruby OR Rails
- Containing "Ruby" or "Rails"