01-19-2013
Script to move files in multiple folders
Hello all,
I would appreciate any help to write a script. I have folder A which contains over 30 thousands xml files, I would like create multiple folders and move those files (500 in each folders).
Thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I'm new here an dlearning a lot from this forum. i didnt find any solution for this in the forum.
I have already checked in folders in subversion named
HTT01,... HTT21.. and have files in each folder like below:
HTT01/HTT01_00000.hex
HTT01/HTT01_00000_fb_result.hex... (2 Replies)
Discussion started by: ravishan21
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
How can I move just the folders that contains files modified n days ago?
Source tree:
|-- SourceFolder
| |-- Subfolder1
| | |-- file1.dat
| | `-- file2.dat
| |-- Subfolder2
| | |-- filea.dat
| | `-- fileb.dat
Destination tree:
|-- ... (3 Replies)
Discussion started by: xavix
3 Replies
3. Shell Programming and Scripting
Hi guys:
I've got this problem, I want to move a bunch of files to 3 different folders, without any specific order, and I'm trying to automatize it with a shell script.
I'm a newbie at shell scripting so this is my first try:
#!/bin/bash
COUNTER=`ls -1 | wc -l`
while
do
ARRAY=(... (11 Replies)
Discussion started by: wretchedmike
11 Replies
4. Shell Programming and Scripting
Hi Friends,
Below is my requirement and i am not clear how to approach this issue in unix programming.
I have a folder with 2500 files. The files are in below format.
1234_name1.txt
1234_name123.txt
4567_name1.txt
4567_name123.txt
and i need a program which will read each file from this... (5 Replies)
Discussion started by: diva_thilak
5 Replies
5. Shell Programming and Scripting
Hello,
I need a simple script to Auto-detect new files and folders in the directory.
And then I need to zip the new files and bzip2 new folders and move them out of that folder where I am detecting changes to the other folder.
Remember, I need simple one. If anyone could do it fast, I may... (1 Reply)
Discussion started by: juzt1s
1 Replies
6. Shell Programming and Scripting
Hi,
I have a sub directory with a number of files and folders. What i want is a subdirectory with just folders and not files for cleanliness sake. So I want to move the files into the new folder but keep the folders in the same place. Move all files (but not folders) to new folder.
I am... (4 Replies)
Discussion started by: Hopper_no1
4 Replies
7. UNIX for Advanced & Expert Users
I have 20 Servers (They are Windows 2003) that I remote every day using names or IP address and type in my username & Password then copy folders manually to my local computer.
I'm wondering if i can just run script(s) from my local computer to do this job without using FTP(because of security... (5 Replies)
Discussion started by: idiazza
5 Replies
8. Shell Programming and Scripting
Greetings!
I'm looking for starting information for a shell script. Here's my scenario:
I have multiple folders(100) for example:
/www/test/applications/app1/logs
/www/test/applications/app2/logs
Within these folders there are log files files that need to be deleted after a month.
... (3 Replies)
Discussion started by: whysolucky
3 Replies
9. Shell Programming and Scripting
How do I move all folders and its contents from a directory A to another directory B, skipping all files in Directory A ?
---------- Post updated at 12:53 PM ---------- Previous update was at 12:42 PM ----------
Ok. Got it.
mv /A/*/ /B/ (1 Reply)
Discussion started by: DHeisenberg
1 Replies
10. Shell Programming and Scripting
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies
LEARN ABOUT DEBIAN
mtp_libmtp_folder_struct
LIBMTP_folder_struct(3) libmtp LIBMTP_folder_struct(3)
NAME
libmtp - LIBMTP_folder_struct
SYNOPSIS
#include <libmtp.h>
Data Fields
uint32_t folder_id
uint32_t parent_id
uint32_t storage_id
char * name
LIBMTP_folder_t * sibling
LIBMTP_folder_t * child
Detailed Description
MTP Folder structure
Examples:
delfile.c, folders.c, getfile.c, newfolder.c, sendfile.c, and sendtr.c.
Field Documentation
LIBMTP_folder_t* LIBMTP_folder_struct::child
Child folder or NULL if no children
Examples:
folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Find_Folder(), and LIBMTP_Get_Folder_List_For_Storage().
uint32_t LIBMTP_folder_struct::folder_id
Unique folder ID
Examples:
folders.c.
Referenced by LIBMTP_Find_Folder(), LIBMTP_Get_Folder_List_For_Storage(), LIBMTP_new_folder_t(), and LIBMTP_Set_Folder_Name().
char* LIBMTP_folder_struct::name
Name of folder
Examples:
folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Get_Folder_List_For_Storage(), and LIBMTP_Set_Folder_Name().
uint32_t LIBMTP_folder_struct::parent_id
ID of parent folder
Referenced by LIBMTP_Get_Folder_List_For_Storage().
LIBMTP_folder_t* LIBMTP_folder_struct::sibling
Next folder at same level or NULL if no more
Examples:
folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Find_Folder(), and LIBMTP_Get_Folder_List_For_Storage().
uint32_t LIBMTP_folder_struct::storage_id
ID of storage holding this folder
Referenced by LIBMTP_Get_Folder_List_For_Storage().
Author
Generated automatically by Doxygen for libmtp from the source code.
Version 1.1.3 Sun Feb 17 2013 LIBMTP_folder_struct(3)