DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
terminal find containing directory of file and cd to directory
$ cd `find ~ -name filename.txt -exec dirname {} ;`
Source by superuser.com #
PREVIOUS
NEXT
Tagged:
#terminal
#find
#directory
#file
#cd
#directory
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit