Results 1 to 4 of 4
Trying to make a simple alias for this find command:
Code:
find -regex '.*/\..*' -prune -o -type f -mtime -1 -print
That command finds all files modified < 24 hours ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-02-2012 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 10
the 'find' command as an alias
Trying to make a simple alias for this find command:
That command finds all files modified < 24 hours ago. I use tcsh. If I do:Code:find -regex '.*/\..*' -prune -o -type f -mtime -1 -print
I get:Code:alias findNew 'find -regex '.*/\..*' -prune -o -type f -mtime -1 -print'
alias: No match.
Lastly, If I want to replace the value '1' with an variable wildcard, do I use \!*
Thanks.
Mike
- 02-03-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,744
Is the problem that you are nesting single quotes? Try this:
Code:alias findNew 'find -regex ".*/\..*" -prune -o -type f -mtime -1 -print'
- 02-03-2012 #3Just Joined!
- Join Date
- Jun 2011
- Posts
- 10
- 02-03-2012 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,744
np, and thanks for the find command. i like that one, will be storing it away...


Reply With Quote

