Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Move several files into specific directories with a loop Post 303044109 by Neo on Friday 14th of February 2020 01:38:50 AM
Old 02-14-2020
Do you know how to use the terminal on the mac?

I ask this because in your question, you mention "dragging".....

The task you are describing is a "terminal" level task, not a GUI "draggable" task (generally speaking).
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

grep'ing for specific directories, and using the output to move files

Hello, this is probably another really simple tasks for most of you gurus, however I am trying to make a script which takes an input, greps a specific file for that input, prints back to screen the results (which are directory names) and then be able to use the directory names to move files.... (1 Reply)
Discussion started by: JayC89
1 Replies

2. UNIX for Dummies Questions & Answers

want to move files in a dir into different directories based on the filename

I want to move the files in a dir to different dirs based on their file names. Ex: i have 4 different files with name - CTS_NONE_10476031_MRL_PFT20081215a.txt CTS_NONE_10633009_MRL_PFT20091020a.txt CTS_NONE_10345673_MRL_PFT20081215a.txt CTS_NONE_10872456_MRL_PFT20091020a.txt and the 1st... (2 Replies)
Discussion started by: Sriranga
2 Replies

3. Shell Programming and Scripting

want to move files in a dir into different directories based on the filename

I want to move the files in a dir to different dirs based on their file names. Ex: i have 4 different files with name - CTS_NONE_10476031_MRL_PFT20081215a.txt CTS_NONE_10633009_MRL_PFT20091020a.txt CTS_NONE_10345673_MRL_PFT20081215a.txt CTS_NONE_10872456_MRL_PFT20091020a.txt and the 1st... (4 Replies)
Discussion started by: Sriranga
4 Replies

4. Shell Programming and Scripting

Help with command to Move files by X number to seperate directories

Hello, I need help finding a script that will allow me to move files from one directory to another directory 10k files at a time. I have a directory that has 100 K files in it. I need to have those 100k files broken apart to separate directories each with 10k files in them. Here is the... (8 Replies)
Discussion started by: Geo_Bean
8 Replies

5. Shell Programming and Scripting

Loop to move files in different directories

Hi, I have various log files in different paths. e.g. a/b/c/d/e/server.log a/b/c/d/f/server.log a/b/c/d/g/server.log a/b/c/h/e/server.log a/b/c/h/f/server.log a/b/c/h/g/server.log a/b/c/i/e/server.log a/b/c/i/e/server.log a/b/c/i/e/server.log and above these have an archive folder... (6 Replies)
Discussion started by: acc01
6 Replies

6. OS X (Apple)

Batch file to move video files and retain sub-directories

I have just purchased my first ever Apple computer - and am therefore new to UNIX also. I would like to create a simple "batch file" (apologies if this is the wrong terminology) to do the following: When I plug my camera into the MAC it automatically downloads photos and videos into a new... (1 Reply)
Discussion started by: mm0mss
1 Replies

7. Shell Programming and Scripting

Recursively move directories along with files/specific files

I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find ) The directory structure looks like :- /tmp a.log b.log c.log /abcd d.log e.log When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies

8. UNIX for Dummies Questions & Answers

Move multipe files to corresponding directories

Hi, In a parent directory there are several files in the form IDENTIFIER1x IDENTIFIER1.yyy IDENTIFIER1_Z, etc IDENTIFIER2x IDENTIFIER2.yyy IDENTIFIER2_Z, etc IDENTIFIER3x IDENTIFIER3.yyy, IDENTIFIER3_Z, etcIn the same parent directory there are corresponding directories named... (7 Replies)
Discussion started by: spirospap
7 Replies

9. Shell Programming and Scripting

Need BASH Script Help to Move Files While Creating Directories

I've got this script to loop through all folders and move files that are more than 2 years old. I'm using the install command because it creates the necessary directories on the destination path and then I remove the source. I'd like to change the script to use the mv command since it is much... (4 Replies)
Discussion started by: consultant
4 Replies
tapset::task(3stap)													       tapset::task(3stap)

NAME
tapset::task - systemtap task tapset DESCRIPTION
task_current The current task_struct of the current task See function::task_current(3stap) for details. task_parent The task_struct of the parent task See function::task_parent(3stap) for details. task_state The state of the task See function::task_state(3stap) for details. task_execname The name of the task See function::task_execname(3stap) for details. task_pid The process identifier of the task See function::task_pid(3stap) for details. pid2task The task_struct of the given process identifier See function::pid2task(3stap) for details. pid2execname The name of the given process identifier See function::pid2execname(3stap) for details. task_tid The thread identifier of the task See function::task_tid(3stap) for details. task_gid The group identifier of the task See function::task_gid(3stap) for details. task_egid The effective group identifier of the task See function::task_egid(3stap) for details. task_uid The user identifier of the task See function::task_uid(3stap) for details. task_euid The effective user identifier of the task See function::task_euid(3stap) for details. task_prio The priority value of the task See function::task_prio(3stap) for details. task_nice The nice value of the task See function::task_nice(3stap) for details. task_cpu The scheduled cpu of the task See function::task_cpu(3stap) for details. task_open_file_handles The number of open files of the task See function::task_open_file_handles(3stap) for details. task_max_file_handles The max number of open files for the task See function::task_max_file_handles(3stap) for details. SEE ALSO
function::task_current(3stap), function::task_parent(3stap), function::task_state(3stap), function::task_execname(3stap), function::task_pid(3stap), function::pid2task(3stap), function::pid2execname(3stap), function::task_tid(3stap), function::task_gid(3stap), function::task_egid(3stap), function::task_uid(3stap), function::task_euid(3stap), function::task_prio(3stap), function::task_nice(3stap), function::task_cpu(3stap), function::task_open_file_handles(3stap), function::task_max_file_handles(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::task(3stap)
All times are GMT -4. The time now is 08:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy