Kindly help me in this requirement where i want to move files based on its status.
For Eg:
I have 3 dir's
--FileBox Dir
this directory will have all the files which i need to process (in informatica ETL Tool)
--Succeeded Dir
this directory will have files which successfully processed
--Failed Dir
files did not processed
and this is how it should work,
i know this code is not even rough work but this is how my script would work
Also is there any way to show which file is in -progress something like if i am processing ABC.txt file then while running my scipt, display:
ABC.txt In - progress and same for other files also.
I need to move a bunch of files into folders that have the same name. I wanted to either do this with some filter command or some type of batch file that I could save that would already include all of the mv commands since I will have to do this process often. Whatever method you think is easier.
... (7 Replies)
I have a directory which has crores of files since from 2003. I want to move only the 2003 files to another directory. Please help in doing this.
Thanks (1 Reply)
Hi All,
I have a directory which has crores of files since from 2003 till now. I want to move only the 2003 files to another directory. Please help.
Thanks (2 Replies)
Hi folks,
I'm new here and appreciate greatly any help.
I have a bunch of files that need be moved and renamed. Fortunately, they are all in sequence...
Present filename and path: /.catalog1/t76038_842-01
Move to: /.catalog1/76038-01
So, we need to drop the... (8 Replies)
Hi Folks,
I have different type of file in my current directory. From my current directory i need to move the file which is start with csp_rules and if the file is having the string payg , then I need to move all this files to another directory /output/record. Please help me how to do this?
... (3 Replies)
Hi All,
I have 2 LINUX scripts (Lets say ScriptA & ScriptB) which copies files (lets say 'date_abc.txt , it goes to a while loop & checks for the files between 2 date varialbles) to directory X. (as Shown Below)
These 2 scripts are called from 2 different Autosys schedules & runs at the... (3 Replies)
Hi All,
I want to move the files in to different folders based on the files month in the file timestamp.
For example
All the september files in the directory should moves into the folder "sep_bkp_files" , August files in to aug_bkp_files folder...
Please help me to achive the above... (10 Replies)
Hi ,
I need a script which moves files based on month. Example :
Apr 29 03:16 log4.txt
Apr 29 03:16 log5.txt
May 4 09:17 log1.txt
May 4 09:17 log2.txt
Move Apr files into Apr2015(Folder)
Move May files into May2015(Folder).
This is urgent requirement , if you can help me... (5 Replies)
Hello,
First time poster. I am looking for a way to script or program the process of moving files from one folder to another, automatically, based on the count of files in the destination folder.
I was thinking a shell script would work, but am open to the suggestions of the experts... (6 Replies)
Discussion started by: comtech
6 Replies
LEARN ABOUT LINUX
log_mf_h
log_mf_h(3erl) Erlang Module Definition log_mf_h(3erl)NAME
log_mf_h - An Event Handler which Logs Events to Disk
DESCRIPTION
The log_mf_h is a gen_event handler module which can be installed in any gen_event process. It logs onto disk all events which are sent to
an event manager. Each event is written as a binary which makes the logging very fast. However, a tool such as the Report Browser ( rb )
must be used in order to read the files. The events are written to multiple files. When all files have been used, the first one is re-used
and overwritten. The directory location, the number of files, and the size of each file are configurable. The directory will include one
file called index , and report files 1, 2, .... .
EXPORTS
init(Dir, MaxBytes, MaxFiles)
init(Dir, MaxBytes, MaxFiles, Pred) -> Args
Types Dir = string()
MaxBytes = integer()
MaxFiles = 0 < integer() < 256
Pred = fun(Event) -> boolean()
Event = term()
Args = args()
Initiates the event handler. This function returns Args , which should be used in a call to gen_event:add_handler(EventMgr,
log_mf_h, Args) .
Dir specifies which directory to use for the log files. MaxBytes specifies the size of each individual file. MaxFiles specifies how
many files are used. Pred is a predicate function used to filter the events. If no predicate function is specified, all events are
logged.
SEE ALSO gen_event(3erl) , rb(3erl)Ericsson AB stdlib 1.17.3 log_mf_h(3erl)