1
vote
1answer
212 views

Replacing directories that are subversion-monitored

We're trying to update an installed software which we have under control by subversion. The update instructions for the software require replacing several directories that have .svn directories in ...
3
votes
3answers
283 views

Prevent 'cd' remembering symbolic links traversed

Say you have directory ~/mytool that softlinks to /usr/local/mytool. Then cd mytool leaves your current directory as ~/mytool, which may cause scripts to behave incorrectly. Is there a way to avoid ...
1
vote
3answers
734 views

Deleting all folders older than a specified date, except some of them

i had to do a script job in bash to delete all directory in a path which are older than a specified date except some of them. i know the name of the directories which shouldn't be deleted... Can you ...
6
votes
5answers
11k views

Check to see if a directory exists remotely (shell script)

Is there a way to see if a directory exists on a remote server? Perhaps there's a better way, but I'm writing an application deployment script, and I want to create a directory on a remote server if ...
1
vote
2answers
247 views

cd to a directory when its path is entered as a command (instead of “foo is a directory” error)

I hate when bash gives me "duh!" kind of error: foo$ ./bar -bash: ./bar: is a directory I used to love AmigaOS shell in which "execution" of a directory simply meant setting it as the current ...
10
votes
5answers
283 views

How do I change to the directory I just moved that file to?

So lets assume I've just done: mv ./myfile /to/some/other/place/ And I now decide I want to follow the file, and go into that directory. Whilst I could head for the mouse, select the text, type ...