171 reputation
6
bio website
location
age
visits member for 2 years, 8 months
seen Mar 18 at 9:52

May
22
comment How to remove the (1) from filenames using the find command
this one will choke on files with spaces in their names; also it requires big enough temporary storage for the `find ...`
May
22
revised How to remove the (1) from filenames using the find command
rephrased
May
22
revised How to remove the (1) from filenames using the find command
added 86 characters in body
May
11
awarded  Organizer
May
11
revised How to remove the (1) from filenames using the find command
more tags added
May
11
suggested suggested edit on How to remove the (1) from filenames using the find command
May
11
comment How to remove the (1) from filenames using the find command
something's missing here... where's done?
May
11
comment How to remove the (1) from filenames using the find command
And, yes: it shall work not only on mac, not only with bash, and not only with GNU sed.
May
11
comment How to remove the (1) from filenames using the find command
neat approach yet as hairy as the sed expression :) +1
May
11
comment How to remove the (1) from filenames using the find command
@Rush yet it is much simpler to pipe to shell - that's a fact
May
11
awarded  Commentator
May
11
comment How to remove the (1) from filenames using the find command
@hobbes3 \\\\ is flattened to \\ by shell while removing double-quotes; \\ makes \ a literal part of the regexp.
May
11
comment How to remove the (1) from filenames using the find command
@Rush that's the only sed which does that; and it needs to start the shell anyway, but a new one for each command (reminds the make's problem, doesn't it?)
May
11
comment How to remove the (1) from filenames using the find command
this is supposed to be a homework :) but ok, i'll update the answer
May
11
comment How to remove the (1) from filenames using the find command
@hobbes3 on the mac here man -a rename finds rename (2) - the syscall, and rename (n) - the TCL command. There are neither rename (1) nor the utility itself there.
May
11
answered How to remove the (1) from filenames using the find command
May
8
comment How i create application B that would be able to communicate with running application A?
@sr_ consider to convert your comment to answer
May
5
awarded  Citizen Patrol
May
4
answered How to open a port early in boot process to unlock LUKS via SSH
Jan
19
comment Giving a custom script root permissions
so how do you supply password to mount it?