10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am trying to zip a file but facing the issue.
I have three zip files.
a_1.zip
a_2.zip
c.zip
I want to add a_1.zip and a_2.zip to c.zip
Code:
###############
for i in a*.zip; do
printf "%s\n" "$i"
done | zip -@ c.zip (2 Replies)
Discussion started by: weknowd
2 Replies
2. Shell Programming and Scripting
Hi
I am trying to create a zip file of a csv by running below script.
zip -r Daily_DB_`date '+:%d/%m/%y'` DBA_checks.csv
But I am getting below error
zip I/O error: No such file or directory
zip error: Could not create output file (Daily_DB_:02/11/12.zip)
However when I run below... (1 Reply)
Discussion started by: sv0081493
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
I need to zip a file and move it into another folder along with the timestamp. The orginal file must be removed from the source directory
Source :
folder1/source12.txt
folder2
After zipping
Folder1/Folder2/source12.zip
Any help will be greatly appreciarted
... (5 Replies)
Discussion started by: akshay01987
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a file a.txt, I am moving the file from my source location (/root/onw/src) to target folder(root/byl/src). My target folder has already a file by name a.txt..,while moving can I see if this file a.txt is existing then move it to archive folder(/root/byl/arc) zip and add time stamp to... (2 Replies)
Discussion started by: shruthidwh
2 Replies
5. Shell Programming and Scripting
Hi,
In my process iam creating a temporary filelist with filename and date(yyyy-mm-dd format).I need to search file for a date and zip.
Below command is giving the filename ,can someone helpme how to add the zip or gzip command to this statement.
grep 2010-11-11 filelist.log | awk... (1 Reply)
Discussion started by: swathich
1 Replies
6. Shell Programming and Scripting
Hi,
I am having some problem with a shell script which zip some files. For zipping I have used the following command:
find . -name "Test_*" -mtime 0 | zip Test_$(date +"%Y%m%d") -@
I have kept the script in /home/abc directory. It is creating the zip file within the same directory where i... (2 Replies)
Discussion started by: abhishek_510
2 Replies
7. Shell Programming and Scripting
Hiya,
I've been plugging away at this script and I cant get it to behave as I need.
first off it fails to adhere to the conditions of the file limit, and zips the directory regardless of the file count and secondly, but less important it zips up the entire path not just the directory I'm... (2 Replies)
Discussion started by: orionrush
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
i have more than 300 tar files in directory and i want to zip all tar files to single file.
could anybody tell me the command since i know how to do zip for single tar file:
bash-3.00$gzip 2008_11_10.tar
bash-3.00$ pwd
/oracle1/archivebackup
in this directory i have lot files... (2 Replies)
Discussion started by: prakash.gr
2 Replies
9. Shell Programming and Scripting
HI,
I want a script which creat a zip file folder of files older than 15 days.......
please help me on this........... (4 Replies)
Discussion started by: jayaramanit
4 Replies
10. AIX
what is the maximum file size that i can zip in aix. (1 Reply)
Discussion started by: ramky79
1 Replies
WRJPGCOM(1) General Commands Manual WRJPGCOM(1)
NAME
wrjpgcom - insert text comments into a JPEG file
SYNOPSIS
wrjpgcom [ -replace ] [ -comment text ] [ -cfile name ] [ filename ]
DESCRIPTION
wrjpgcom reads the named JPEG/JFIF file, or the standard input if no file is named, and generates a new JPEG/JFIF file on standard output.
A comment block is added to the file.
The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file. Although the standard doesn't actually define what COM blocks
are for, they are widely used to hold user-supplied text strings. This lets you add annotations, titles, index terms, etc to your JPEG
files, and later retrieve them as text. COM blocks do not interfere with the image stored in the JPEG file. The maximum size of a COM
block is 64K, but you can have as many of them as you like in one JPEG file.
wrjpgcom adds a COM block, containing text you provide, to a JPEG file. Ordinarily, the COM block is added after any existing COM blocks;
but you can delete the old COM blocks if you wish.
OPTIONS
Switch names may be abbreviated, and are not case sensitive.
-replace
Delete any existing COM blocks from the file.
-comment text
Supply text for new COM block on command line.
-cfile name
Read text for new COM block from named file.
If you have only one line of comment text to add, you can provide it on the command line with -comment. The comment text must be sur-
rounded with quotes so that it is treated as a single argument. Longer comments can be read from a text file.
If you give neither -comment nor -cfile, then wrjpgcom will read the comment text from standard input. (In this case an input image file
name MUST be supplied, so that the source JPEG file comes from somewhere else.) You can enter multiple lines, up to 64KB worth. Type an
end-of-file indicator (usually control-D) to terminate the comment text entry.
wrjpgcom will not add a COM block if the provided comment string is empty. Therefore -replace -comment "" can be used to delete all COM
blocks from a file.
EXAMPLES
Add a short comment to in.jpg, producing out.jpg:
wrjpgcom -c "View of my back yard" in.jpg > out.jpg
Attach a long comment previously stored in comment.txt:
wrjpgcom in.jpg < comment.txt > out.jpg
or equivalently
wrjpgcom -cfile comment.txt < in.jpg > out.jpg
SEE ALSO
cjpeg(1), djpeg(1), jpegtran(1), rdjpgcom(1)
AUTHOR
Independent JPEG Group
15 June 1995 WRJPGCOM(1)