find `-delete` doesn't delete files? [duplicate]
Clash Royale CLAN TAG#URR8PPP
This question already has an answer here:
`find` with multiple `-name` and `-exec` executes only the last matches of `-name`
2 answers
Problem combining -or and -exec with find command [duplicate]
1 answer
Operator precedence in a find command?
1 answer
Look at this example:
$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
Why gettext
file is not being deleted?
I'm using:
$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
$ fish --version
fish, version 2.7.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
linux find
marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Feb 6 at 13:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
`find` with multiple `-name` and `-exec` executes only the last matches of `-name`
2 answers
Problem combining -or and -exec with find command [duplicate]
1 answer
Operator precedence in a find command?
1 answer
Look at this example:
$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
Why gettext
file is not being deleted?
I'm using:
$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
$ fish --version
fish, version 2.7.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
linux find
marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Feb 6 at 13:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, andfind
with multiple-name
and-exec
executes only the last matches of-name
– ilkkachu
Feb 6 at 13:05
add a comment |
This question already has an answer here:
`find` with multiple `-name` and `-exec` executes only the last matches of `-name`
2 answers
Problem combining -or and -exec with find command [duplicate]
1 answer
Operator precedence in a find command?
1 answer
Look at this example:
$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
Why gettext
file is not being deleted?
I'm using:
$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
$ fish --version
fish, version 2.7.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
linux find
This question already has an answer here:
`find` with multiple `-name` and `-exec` executes only the last matches of `-name`
2 answers
Problem combining -or and -exec with find command [duplicate]
1 answer
Operator precedence in a find command?
1 answer
Look at this example:
$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
Why gettext
file is not being deleted?
I'm using:
$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
$ fish --version
fish, version 2.7.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
This question already has an answer here:
`find` with multiple `-name` and `-exec` executes only the last matches of `-name`
2 answers
Problem combining -or and -exec with find command [duplicate]
1 answer
Operator precedence in a find command?
1 answer
linux find
linux find
asked Feb 6 at 12:56
KossakKossak
290314
290314
marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Feb 6 at 13:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Feb 6 at 13:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, andfind
with multiple-name
and-exec
executes only the last matches of-name
– ilkkachu
Feb 6 at 13:05
add a comment |
Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, andfind
with multiple-name
and-exec
executes only the last matches of-name
– ilkkachu
Feb 6 at 13:05
Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and
find
with multiple -name
and -exec
executes only the last matches of -name
– ilkkachu
Feb 6 at 13:05
Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and
find
with multiple -name
and -exec
executes only the last matches of -name
– ilkkachu
Feb 6 at 13:05
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and
find
with multiple-name
and-exec
executes only the last matches of-name
– ilkkachu
Feb 6 at 13:05