Is better way copy list of multiple files, rename and gzip
Is better way to write the script loop through one by one "Old_File_1: & New_File_1:" to copy 100 files to /staging/test folder then re-name & gzip all those files? I wrote this code below and don't like that much. Thanks
I have a control_file under /tmp/test folder like below 100 files and {DATE_FILE} = YYYYMMDD
Last edited by dotran; 01-31-2015 at 11:57 PM..
Reason: Add CODE and ICODE tags and change QUOTE tags to CODE tags.
Hello Everyone,
Here is what I am trying to do. I have four text files, I want to gzip them under unix and mail the zipped file via outlook. I am able to do this easily enough, but using winzip or pkunzip to unzip the file, there is only one file. (In essence, all four files were... (2 Replies)
Hi all,
I am a newbie in writng unix..I am using ksh shell..Does anyone know how to copy a list o files from directory A to directory B with differnt names? i.e
in Dir A, I have
RPT101.555.TXT
RPT102.666.TXT
and I want to copy those files to dir B with new naming convention..
in Dir B,... (7 Replies)
I have few webservers logs like access.log. which would be growing everyday.
what i do everyday is, take the backup of access.log as access.log_(currentdate) and nullify the access.log.
So thought of writing a script... but stuck up in middle.
My requirement: to take the backup and nullify... (6 Replies)
hello, I need to build a shell script that receives the folder to copy by parameter and copy all files except thumb.db to another folder and rename them like, file.jpg renamed to file_bb1.jpg.
can someone help me
Thanks (4 Replies)
hello,
I am write a Script and i would listing all Files from Path1 out with DSR*.txt and give a new name an copy to the Path2.
I have problems with that to rename. Someone can help me?
Sorry, for my english. My english is not gut.
I hope you understand my.
That is my Script.
... (2 Replies)
Hi All,
I am new to scripting and am looking for some assistance setting up a script. Basically I need the script to scan a folder for the newest files and make a copy of those files, adding a month to the date stamp. I also need this script to delete the previously copied files to save space.... (4 Replies)
Hi,
I require help to complete below requirement through Linux Script.
I have a SQL query which shows two columns as output. One is Report Name and other is report path. Query return multiple rows. below is the output.
Report Name
Cotton Stock Report (Net Weight)- Customized
Output... (3 Replies)
#!/bin/sh
sqlplus -s "/ as sysdba" << EOF
SET HEADING OFF
SET FEEDBACK OFF
Select
pt.user_concurrent_program_name , OUTFILE_NAME
FROm
apps.fnd_concurrent_programs_tl pt,
apps.fnd_concurrent_requests f
where
pt.concurrent_program_id = f.concurrent_program_id
and pt.application_id =... (1 Reply)
Good afternoon friends.
I wanted to make a query, how to compress several files and leave them all in 1, for example
flat text files:
filename_1.csv
filename_2.csv
filename_3.csv
expected result
filename_end.gzip = (filename_1.csv
filename_2.csv
filename_3.csv)
please (2 Replies)
Discussion started by: tricampeon81
2 Replies
LEARN ABOUT DEBIAN
mongofiles
MONGOFILES(1) Mongo Database MONGOFILES(1)NAME
mongofiles - a simple GridFS interface
SYNOPSIS
mongofiles [OPTIONS]
DESCRIPTION
mongofiles is used to list, get, and insert files in the database.
EXAMPLES
mongofiles list
lists files in test.fs.files
mongofiles put README.txt
inserts the file README.txt into the collection test.fs.files
mongofiles get photo.jpg
retrieves photo.jpg from test.fs.files and saves it locally
OPTIONS --help show usage information
-h, --host HOST
mongo host to which to connect
-d, --db DB
database to use (default DB=test)
-c, --collection COLLECTION (default COLLECTION=fs.files)
collection to use
--command [list|search|put|get]
execute a command
--file FILE
filename for get or put
list list all files. takes an optional filename. the file has to start with the filename
search search all files for something that contains the string
COPYRIGHT
Copyright 2007-2009 10gen
SEE ALSO
For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.
AUTHOR
Kristina Chodorow
10gen June 2009 MONGOFILES(1)