xargs
Is `xargs` the way to go with this problem?
I\'ve got a text file with a listing of file lo开发者_Python百科cations I want to move, first to temporary directory, do some in the source directory then move the files back to the original location.[详细]
2023-04-07 07:15 分类:问答How to execute multiple commands after xargs -0?
find . -name \"filename including space\" -print0 | xargs -0 ls -aldF >开发者_开发知识库 log.txt[详细]
2023-04-05 17:17 分类:问答Using -0 with xargs
I am trying to give an input to xargs that is NUL separated. To this eff开发者_StackOverflow中文版ect I have this:[详细]
2023-04-05 06:33 分类:问答Running multiple commands with xargs
cat a.txt | xargs -I % echo % In the example above, xargs takes echo % as the command argument. But in some cases, I need multiple commands to process the argument instead of one. For example:[详细]
2023-03-25 23:19 分类:问答Using bash, how do I find all files containing a specific string and replace them with an existing file?
I am using 开发者_运维问答Linux and would like to replace all files containing the string 000000 with an existing file /home/user/offblack.png but keep the existing filename. I\'ve been working at thi[详细]
2023-03-25 04:06 分类:问答Run expand on find results
I\'m trying to run the expand shell command on all files found by a find command. I\'ve tried -exec and xargs but both failed. Can anyone explain me why? I\'m on a mac for the record.[详细]
2023-03-20 11:44 分类:问答xargs jar tvf - does not work
Objective: to list files in all jars. This works: for f in `find . -name \"*.jar\"`; do jar tvf $f; done[详细]
2023-03-18 08:24 分类:问答Extract arguments from stdout and pipe
I was trying to execute a script n times witha different fi开发者_如何学Pythonle as argument each time using this:[详细]
2023-03-16 19:31 分类:问答Running command using XARG
I have example开发者_StackOverflow中文版 file: test_file //--- Test File-- **RUN_THIS RUN_THIS00 RUN_THIS01[详细]
2023-03-15 13:25 分类:问答Using grep to search for hex strings in a file
Does anyone know how to get grep, or similar tool, to retrieve offsets of hex strings in a file? I have a bunch of hexdumps (from GDB) that I need to check for strings and then run again and check if[详细]
2023-03-12 12:40 分类:问答