LoginSignup
3
0

More than 5 years have passed since last update.

awkを使ってrake routesのパス部分だけを表示

Last updated at Posted at 2018-08-26

Qiitaに投稿するほどのことじゃないけど、awk普段全然使ってなかったので。便利。

# awkで3つ目の列だけ表示
bin/rake routes | awk '{print $3}'

# grepで絞り込んでからの場合はこんな感じ
bin/rake routes | grep hogehoge | awk '{print $3}'
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0