find

GNU parallel: assign one thread for each node (directories and sub* directories) of an entire tree from a start directory

ε祈祈猫儿з 提交于 2020-08-27 14:59:33
问题 I would like to benefit from all the potential of parallel command on macOS (it seems there exists 2 versions, GNU and Ole Tange's version but I am not sure). With the following command: parallel -j8 find {} ::: * I will have a big performance if I am located in a directory containing 8 subdirectories. But if all these subdirectories have a small content except for only one, I will have only one thread which will work on the unique "big" directory. Is there a way to follow the parallelization

How can I use the parallel command to exploit multi-core parallelism on my MacBook?

最后都变了- 提交于 2020-08-09 13:56:13
问题 I often use the find command on Linux and macOS. I just discovered the command parallel , and I would like to combine it with find command if possible because find command takes a long time when we search a specific file into large directories. I have searched for this information but the results are not accurate enough. There appear to be a lot of possible syntaxes, but I can't tell which one is relevant. How do I combine the parallel command with the find command (or any other command) in

Notepad++ find in files filter EXCLUDE

爷,独闯天下 提交于 2020-07-31 09:43:31
问题 I'm looking for a way to get n++'s find in files dialog to exclude certain files... the only reference I've found so far is this http://sourceforge.net/project/shownotes.php?release_id=536795&group_id=189927 , but, unfortunately, it doesn't work. I'm using *[^*.dll] to, I think, search for everything BUT dll files. How can I resolve this ? Thanks 回答1: not that its a GOOD answer, but, what I've found that works is this *.sql ; *.asp ; *.html ; *.as ; *.mxml Its definitely not an 'exclude' list

How to check if find command didn't find anything (bash, openSUSE)?

旧巷老猫 提交于 2020-07-17 09:40:35
问题 I know that is possible to use for loop with find command like that for i in `find $something`; do (...) done but I want to use find command with "if". I am trying to create progress comments (and log files later) about removed files by my script. I need to check if find /directory/whatever -name '*.tar.gz' -mtime +$DAYS found something or not. If not I want to say echo 'You don't have files older than $DAYS days' or something like this ;) How I can do that in shell script? 回答1: Count the

How to check if find command didn't find anything (bash, openSUSE)?

不打扰是莪最后的温柔 提交于 2020-07-17 09:40:09
问题 I know that is possible to use for loop with find command like that for i in `find $something`; do (...) done but I want to use find command with "if". I am trying to create progress comments (and log files later) about removed files by my script. I need to check if find /directory/whatever -name '*.tar.gz' -mtime +$DAYS found something or not. If not I want to say echo 'You don't have files older than $DAYS days' or something like this ;) How I can do that in shell script? 回答1: Count the

UNIX find: opposite of -newer option exists?

南楼画角 提交于 2020-06-25 07:24:25
问题 I know there is this option for unix's find command: find -version GNU find version 4.1 -newer file Compares the modification date of the found file with that of the file given. This matches if someone has modified the found file more recently than file. Is there an option that will let me find files that are older than a certain file. I would like to delete all files from a directory for cleanup. So, an alternative where I would find all files older than N days would do the job too. 回答1: You

UNIX find: opposite of -newer option exists?

蓝咒 提交于 2020-06-25 07:24:25
问题 I know there is this option for unix's find command: find -version GNU find version 4.1 -newer file Compares the modification date of the found file with that of the file given. This matches if someone has modified the found file more recently than file. Is there an option that will let me find files that are older than a certain file. I would like to delete all files from a directory for cleanup. So, an alternative where I would find all files older than N days would do the job too. 回答1: You

RegEx string to find two strings and delete the rest of the text in the file

时光总嘲笑我的痴心妄想 提交于 2020-06-23 11:23:46
问题 I need to do a find and delete the rest in a text file with notepad+++ i want tu use RegeX to find variations on thban..... the variable always has max 5 chars behind it(see dots). with my search string it hit the last line but the whole line. I just want the word preserved. When this works i also want keep the words containing C3..... The rest of a tekst file can be delete. It should also be caps insensitive (?!thban\w+).*\r?\n? \ THBANES900 and C3950 bla bla THBAN ..THBANES901.. C3850 bla