10-28-2009
Unix Script - Move and Unzip Files
Requirement Details:
We have a folder named 'Inbound Files' that has many folders in it containing source files that have to be processed by Informatica system. We have zipped files, text files and csv files in those folders that have to be moved (cut and paste) from 'Inbound_Files' folder to 'Src_Files' folder.
Now the zipped files in 'Src_Files' folder have to be unzipped in the same folder having a list file created.
For example:
We have a zipped file named as Data_File.GZ that contains File1.txt, File2.txt and File3.txt zipped in it. Post unzip unlike the number of resultant files, the file names have to be added into a list file named Data_File.lst - this list file will have the resultant file names (say - Data_File.lst should contain
File1.txt
File2.txt
File3.txt one below the other)
Please assist
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Discussion started by: siegfried
1 Replies
2. HP-UX
Hi All
I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX).
I don't have unzip cmd available in my curent Unix version
Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file .
Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies
3. Shell Programming and Scripting
As part of an audit at work I need to review a lot of Windows workstations. One thing I need to do is review all of the .doc files. My problem is that I guessed a number of these files would be in zip archives. This is the case but they are mixed in with a lot of other file types that I am not... (1 Reply)
Discussion started by: stumpyuk
1 Replies
4. Shell Programming and Scripting
Hi All
I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX).
I don't have unzip cmd available in my curent Unix version
Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file .
Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies
5. Shell Programming and Scripting
I am looking for advice on how to write a script that will rename and/or move files to a different directory based upon the results of a grep.
Let's say I have ten files in a directory. Some of them - not all - contain the text 'HELLO'. I would like to be able to grep the files for that text,... (3 Replies)
Discussion started by: rjhjr64
3 Replies
6. Shell Programming and Scripting
I have a folder (C:\shellprg\input\) containing .CSV, .zip, .gz files.
1] I want to find all .zip/.gz files from folder (C:\shellprg\input\).
2] unzip/uncompress files into the same folder (C:\shellprg\input\) through shell script.
I am using below commands for unzip files,
unzip <filename>... (2 Replies)
Discussion started by: Poonamol
2 Replies
7. Shell Programming and Scripting
Hi Expert,
We have some shell scripts which Internally uses Perl Script to Unzip the source zip files which comes to inbound directory. So now our requirement is to avoid the dependency on Perl Script and us Shell Script to unzip the files. I have the Perl script with me attached can some one... (3 Replies)
Discussion started by: naveen.dasu
3 Replies
8. Shell Programming and Scripting
I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix.
Please help me resolve this issue
Thanks
ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies
9. Shell Programming and Scripting
Hi all,
I have a many folders with zipped files in them. The zipped files are txt files from different folders. The txt files have the same names. If i try to
find . -type f -name "*.zip" -exec cp -R {} /myhome/ZIP \; it fails since the ZIP files from different folders have the same names and... (2 Replies)
Discussion started by: pmkenya
2 Replies
10. UNIX for Beginners Questions & Answers
#!/bin/bash
set -xv
errdir=/apps/awd/RPMSReportParser/dist/error
attach=/apps/awd/rip-optumprod/poller/attach
backup=/apps/awd/rip-optumprod/pollerstage/backup/
log=~/catcher.log
exec >>"$log" 2>&1
date >>"$log"
cd $errdir
for i in *.zip*; do
cp -p $errdir/"$i" "$backup";
... (2 Replies)
Discussion started by: xgringo
2 Replies
LEARN ABOUT DEBIAN
fontypython
FONTYPYTHON(1) FONTYPYTHON(1)
NAME
fontypython - Find, view and manage font files of all kinds.
SYNOPSIS
fontypython [OPTIONS]... [VIEW]... [TARGET]...
DESCRIPTION
fontypython is a GUI utility written in Python and WxPython that will help you do font stuff on GNU/Linux system. You can quickly view and
filter arbitrary* TTF, TTC, OTF or Type1 font files and then gather them together into 'Pogs' which can be installed or removed as needed.
In this way you control which fonts are installed on a per-project basis.
If you have gucharmap or kfontview installed, (there is an option in Settings to choose which one) you can view any font's character maps
etc.
*Arbitrary means you can see and/or use any fonts in a local directory (or a mount). They do not need to be installed on your system.
OPTIONS
VIEW A place where fonts are. A Pog or a folder someplace.
TARGET
A "Pog". A place to keep those fonts (just references to them).
OPTIONS
Below are the various command-line options. You don't need to use them, but they are handy. The program will run as a GUI if you
only invoke 'fontypython'.
-e, --examples
Show some %$@#$ examples!
-l, --list
List the names of all the Pogs.
-i Pog, --install=Pog
Install the fonts in this Pog to your fonts folder.
-u Pog, --uninstall=Pog
Uninstall the fonts in this Pog.
-p Pog, --purge=Pog
Purge the Pog of font files that are no longer really there.
-s num, --size=num
Set a new default point size.
-n num, --number=num
Set a new default for how many fonts to view at one go. Don't overdo this.
-c folder --check=folder
Check for bad fonts that crash the program. It will recurse through sub-folders. This will build a file: ~/.fontypython/segfonts
After using this tool you should be able to browse safely. (The reason it's not done by default is that it's very slow.) NOTE: The
fonts that crash the program are probably still perfectly good and can be used in other apps.
-a folder Pog, --all=folder Pog
Puts all fonts in this folder into the Pog. If the Pog already exists, it will add only *new* fonts, this means fonts are not
repeated in that Pog.
-A folder Pog, --all-recurse=folder Pog
Puts all fonts in this folder and *all* sub-folders into the Pog. Rest same as -a.
-z Pog, --zip=Pog
All the fonts inside Pog will be zipped and the zipfile will be named after the Pog. The file will be placed in the current direc-
tory.
--version
Show program's version number and exit.
-h, --help
Show help message and exit.
SEE ALSO
Homepage: <https://savannah.nongnu.org/projects/fontypython>
AUTHOR
fontypython was written by Donn.C.Ingle <donn.ingle@gmail.com>.
This manual page was updated by Donn Ingle in October 2009. It was originally written by Kartik Mistry <kartik@debian.org>, for the Debian
project (but may be used by others).
2009-09-28 FONTYPYTHON(1)