skip to main | skip to sidebar

Vi Command Help

2016年8月8日 星期一

find file and open with vi

http://askubuntu.com/questions/586047/how-to-open-a-found-file-with-vi-piping-find-output-to-vi
find /home/user -type f -name 'important'
 -exec vi {} \;
其中有說明..
-exec 後面接的是 要 exec 的命令,一直到 \; 符號為止。
而 {} 代表的是 前面 find 的結果。

張貼者: checko 於 晚上11:05 沒有留言:
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)
  • advance (7)
  • bookmark (3)
  • browse (8)
  • cheatsheet (1)
  • copy-paste (1)
  • diff (4)
  • edit (11)
  • files (5)
  • Format (5)
  • FormatConvert (3)
  • gvim (2)
  • indent (2)
  • Moving (3)
  • plugin (3)
  • search (4)
  • shell (3)
  • show (9)

網誌存檔

  • ►  2020 (1)
    • ►  6月 (1)
  • ►  2019 (1)
    • ►  4月 (1)
  • ▼  2016 (1)
    • ▼  8月 (1)
      • find file and open with vi
  • ►  2015 (1)
    • ►  7月 (1)
  • ►  2014 (1)
    • ►  1月 (1)
  • ►  2013 (2)
    • ►  1月 (2)
  • ►  2012 (4)
    • ►  5月 (2)
    • ►  1月 (2)
  • ►  2011 (8)
    • ►  10月 (3)
    • ►  6月 (2)
    • ►  3月 (2)
    • ►  1月 (1)
  • ►  2010 (8)
    • ►  12月 (1)
    • ►  11月 (2)
    • ►  10月 (3)
    • ►  9月 (1)
    • ►  8月 (1)
  • ►  2009 (9)
    • ►  9月 (2)
    • ►  3月 (4)
    • ►  2月 (3)