1,657 reputation
1838
bio website coffeeplusplus.z11.de
location Germany
age 42
visits member for 2 years, 1 month
seen 9 hours ago

SCHWUPPS-DI-WUPPS


9h
comment How do I check if a file is a symbolic link to a directory?
Find is really useful if you search only for certain files
Aug
11
comment Use ssh without trying ssh-keys
It is not a duplicate, Here I asked for a workaround. This is of global interest, and doesn't only solve the other question I have.
Aug
11
comment Use ssh without trying ssh-keys
@DavidKohen can you add a description how to do that here please? ssh always too many authentication failures
Aug
11
comment Use ssh without trying ssh-keys
Thanks to @val0x00ff for the link: SSH use only my password, Ignore my ssh key, don't prompt me for a passphrase
Aug
11
awarded  Custodian
Aug
11
reviewed Approve suggested edit on Use ssh without trying ssh-keys
Aug
11
revised Use ssh without trying ssh-keys
added 127 characters in body
Aug
11
answered Use ssh without trying ssh-keys
Aug
11
asked Use ssh without trying ssh-keys
Aug
11
comment replace all dots in filenames with underscore
Great answer! I would just add -v for verbose to all mv commands
Aug
11
comment replace all dots in filenames with underscore
@mdpc: ok, now mv -iv will ask interactively if it should overwrite. But my try isn't good anyway, there is already a great answer below
Aug
11
revised replace all dots in filenames with underscore
added 4 characters in body
Aug
10
comment replace all dots in filenames with underscore
Why not using while read file instead of the find -exec? find . -depth ! -name '.*' -name '*.*' -type d |while read file; do dir=${file%/*}; base=${file##*/}; mv -i -- "$file" "$dir/${base//./_}"; done
Aug
10
accepted replace all dots in filenames with underscore
Aug
10
suggested suggested edit on replace all dots in filenames with underscore
Aug
10
comment replace all dots in filenames with underscore
I know about the interaction, but there is no question at my testserver using -i
Aug
10
comment replace all dots in filenames with underscore
what is the -- in mv stand for? and it seems like the -i option for interactive doesnt work here.
Aug
10
revised replace all dots in filenames with underscore
added 232 characters in body
Aug
10
revised replace all dots in filenames with underscore
edited tags
Aug
10
asked replace all dots in filenames with underscore