Sponsored Content
Top Forums Shell Programming and Scripting Create multiple zip files each containing 50 xml files. Post 302883557 by MadeInGermany on Wednesday 15th of January 2014 04:33:39 AM
Old 01-15-2014
Your script is very good Smilie
Instead of the while loop you can use printf
Code:
DIR=$(printf "%04d" $DIR)

All in one:
Code:
# increment DIR and pad with leading zeros
DIR=$(printf "%04d" $((DIR+1)))


Last edited by MadeInGermany; 01-15-2014 at 05:41 AM..
These 2 Users Gave Thanks to MadeInGermany For This Post:
 

9 More Discussions You Might Find Interesting

1. AIX

ZIP multiple files and also specify size of zip file

I have to zip many pdf files and the size of zip file must not exceed 200 MB. When size is more than 200 MB then multiple zip files needs to be created. How we can achieve this in UNIX? I have tried ZIP utility but it takes a lot of time when we add individual pdfs by looping through a... (1 Reply)
Discussion started by: tom007
1 Replies

2. UNIX for Dummies Questions & Answers

Zip multiple files and copy to help

Hi All, I have a set of large files ~ 500_900Mb I have generated and I'd like to quickly zip and copy them to a new folder elsewhere ... Can anyone suggest a quicky ?? Cheers :) (3 Replies)
Discussion started by: pawannoel
3 Replies

3. Programming

help need in the perl script that create one xml file form multiple files.

Hi every one, Please excuse me if any grammatical mistakes is there. I have multiple xml files in one directory, I need to create multiple XML files into one XML file.example files like this</p> file1:bvr.xml ... (0 Replies)
Discussion started by: veerubiji
0 Replies

4. Shell Programming and Scripting

Zip Multiple files to One .zip file in AIX system

Hi I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want. One I do .zip file, I should be able to unzip in my local Computer. Here is example what I want... (9 Replies)
Discussion started by: RAMA PULI
9 Replies

5. Shell Programming and Scripting

How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?

I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also? I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies

6. Shell Programming and Scripting

Extract strings from XML files and create a new XML

Hello everybody, I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings.. The original XML files contain the source code for... (12 Replies)
Discussion started by: milano.churchil
12 Replies

7. Shell Programming and Scripting

Splitting a single xml file into multiple xml files

Hi, I'm having a xml file with multiple xml header. so i want to split the file into multiple files. Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix. eg : <?xml version="1.0" encoding="UTF-8"?> <ml:individual... (3 Replies)
Discussion started by: Narendra921631
3 Replies

8. UNIX for Beginners Questions & Answers

How can we Zip multiple files created on the same date into one single zip file.?

Hi all i am very new to shell scripting and need some help from you to learn 1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder. 2)Post zipping... (2 Replies)
Discussion started by: b.saipriyanka
2 Replies

9. Shell Programming and Scripting

How can we Zip multiple files created on the same date into one single zip file.?

Hi all i am very new to shell scripting and need some help from you to learn 1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder. 2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies
GDOME2(1)							       0.8.1								 GDOME2(1)

NAME
gdome-config - script to get information about the installed version of gdome2 SYNOPSIS
gdome-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--libs] [--cflags] [--version] [--help] DESCRIPTION
gdome-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use gdome2. OPTIONS
gdome-config accepts the following options: --version Print the currently installed version of gdome2 on the standard output. --libs Print the linker flags that are necessary to link a gdome2 program. --cflags Print the compiler flags that are necessary to compile a gdome2 program. --prefix=DIR If specified, use DIR instead of the installation prefix that gdome2 was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. --exec-prefix=DIR If specified, use DIR instead of the installation exec prefix that gdome2 was built when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. --help Print a short help text and exit. AUTHOR
This manual page was added by Enrico Zini <zinie@cs.unibo.it> for the Debian GNU/Linux system (but may be used by others). The page was made editing the manpage written by Fredrik Hallenberg <hallon@lysator.liu.se> for the libxml2 Debian GNU/Linux package. Version 3 December 2001 GDOME2(1)
All times are GMT -4. The time now is 03:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy