0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ファイルのあるディレクトリにcd

Last updated at Posted at 2025-06-12

GPLなコードを追いかけている時に、ファイルのあるディレクトリに移りたい時があります。

shだと以下のようにできます。

$ cd $(dirname `find . -name xhci.c`)
/home/hiroki/ref/ASUSWRT_RT-AC1200GPlus/release/src-rt-9.x/src/linux/linux-2.6.36/drivers/usb/host

こうしても良いようです。

$ cd `dirname \`find . -name xhci.c\``

cshのやり方がわかりません。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?