I would like a command like
cd ./test/zen/
but working with the name of a file in it, like that
command ./test/zen/rename.sh
and go in /test/zen
There is a way? I can't really use pipe cause I need it for a line like
find -name "rename.sh" -exec sh {} \;
Or there is a solution to execute with this last command a script in the directory where he stand and not in directory where I execute my last command...
Any ideas? Thanks ^_^