06-20-2013
Quote:
Originally Posted by
iaav
I tried doing 'while read" loop but bad errors and can't get it working.
Please elaborate. Post the script that you tried and failed. Post the errors that you got.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a shell script that runs all the time looking for a certain type of file and then it processes the file through a series of other scripts. The script is watching a directory that has files uploaded to it via SFTP. It already checks the size of the file to make sure that it is not still... (3 Replies)
Discussion started by: heprox
3 Replies
2. Shell Programming and Scripting
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
Discussion started by: Satyak
1 Replies
3. Shell Programming and Scripting
Need shell script to read two file at same time and print output in single file
Example I have two files 1) file1.txt 2) file2.txt
File1.txt contains
Aaa
Bbb
Ccc
Ddd
Eee
Fff
File2.txt contains
Zzz
Yyy
Xxx (10 Replies)
Discussion started by: sreedhargouda
10 Replies
4. Shell Programming and Scripting
Hi all,
I am new to shell scripting.
I have dbf file and I need to convert it into csv file.
OR, can i read the fields from a .dbf file and OR seprate the records in dbf file and put into .csv or txt.
Actually in the .dbf files I am getting , the numbers of fields may vary in very record and... (6 Replies)
Discussion started by: gauara
6 Replies
5. Shell Programming and Scripting
I have a shell script that takes a file and uses "syncsort" to sort contents.
I want to add a condition to check whether the input file is textual or binary format. If textual, the "syncsort" will be used to sort the files contents. Otherwise, the sorting process will be skipped.
Note that the... (3 Replies)
Discussion started by: synthea
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Below is some code that I would like to implement however I am getting these errors: (what I am attempting to do is to check if a zip file has ascii files and if ascii and not binary then move the ascii files to a folder. some of the files are in xml format but are ascii and i will be moving... (0 Replies)
Discussion started by: bwcberb
0 Replies
7. Shell Programming and Scripting
Hello.
I want to to backup some "default:" values from a file do some other job and after restore that "default:" values back.
The problem is that the source and destination file has a lot of default: strings in it but with different values...
So..
Here is an example:
A part of my source... (6 Replies)
Discussion started by: ausdim
6 Replies
8. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Write a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print a single line consisting of the phrase:
Windows ASCII
if the files is an... (4 Replies)
Discussion started by: kwatt019
4 Replies
9. Shell Programming and Scripting
Hi,
I have the below script that checks if the .tar file exists in my present directory. If so, extract it and then delete it except if the .tar filename is blent.tar
#!/bin/bash
while ; do
echo "TAR BALL EXISTS"
for f in *.tar; do
echo "File -> $f"
tar -xvf $f
rm -ir $f... (7 Replies)
Discussion started by: mohtashims
7 Replies
10. UNIX for Beginners Questions & Answers
Like to have shell script to Read the given file contents into a merged one file with header of path+file name followed by file contents into a single output file.
While reading and merging the file contents into a single file, Like to keep the format of the source file.
... (4 Replies)
Discussion started by: Siva SQL
4 Replies
LEARN ABOUT SUSE
jpackage-utils
jpackage-utils(7) RPM Java packaging jpackage-utils(7)
NAME
jpackage-utils - Utilities, macros and other files for the JPackage Project <http://www.jpackage.org/>:
SYNOPSIS
build-classpath
build the Java classpath in a portable manner
build-jar-repository
build a jar repository in a portable manner
rebuild-jar-repository
rebuild a jar repository in a portable manner (after a jvm change...)
build-classpath-directory
build the Java classpath from a directory
diff-jars
show jar content differences
jvmjar
install jvm extensions
create-jar-links
create custom jar links
clean-binary-files
remove binary files from sources
check-binary-files
check for presence of unexpected binary files
DESCRIPTION
The JPackage Project has two primary goals:
- To provide a coherent set of Java software packages for Linux, satisfying all quality requirements of other applications.
- To establish an efficient and robust policy for Java software packaging and installation.
We focus on free and open source software whenever possible. For convenience, we also provide non-free packages without the restricted
source code.
Our RPMs are generic in that they should work on any RPM based Linux distribution (Mandriva, Red Hat, SuSE, others). Other packaging format
suggestions are welcome too.
FILES
/use/share/java-utils/java-functions
shell script functions library for Java applications
/etc/java/jpackage-release
string identifying the currently installed JPackage release
/etc/java/java.conf
system-wide Java configuration file
~/.java/java.conf
user's Java configuration
/etc/rpm/macros.jpackage
RPM macros for Java packagers and developers
SEE ALSO
Regular Manual Pages
build-classpath(1)
build-classpath-directory(1)
build-jar-repository(1)
check-binary-files(1)
clean-binary-files(1)
create-jar-links(1)
diff-jars(1)
find-jar(1)
jvmjar(1)
rebuild-jar-repository(1)
rebuild-security-providers(1)
java.conf(5)
Documentation
Following files are located in your standard documentation directory
HEADER.JPP
A standard header with license for spec files of JPackage Project
clean-binary-files.txt
A further documentation for check-binary-files(1), clean-binary-files(1) and create-jar-links(1) commands
httpd-javadoc.conf
Example JPackage javadoc configuration snippet for Apache
jpackage-1.5-policy.xhtml
JPackage Java infrastructure design and packaging policy
jpackage-utils-policy
JPackage packaging (naming) policy
AUTHOR
Written by the JPackage Project
REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/)
jpackage-utils 1.7.5 February 2009 jpackage-utils(7)