11-18-2010
The special variable "$@" expands to all arguments, even when quoted like that. When not quoted, it might split on spaces in filenames, so keep it quoted just as shown.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I need to execute a java program in a shell script.I then need to assign the value being returned by the program into a unix variable.Is there any way i can access the value in a variable in java program?
As in if my java code has a variable,
.
.
.
.
valueA =x.getValue()
.....
can... (1 Reply)
Discussion started by: inquisitive101
1 Replies
2. Shell Programming and Scripting
Hello,
I have a very stupid/simple problem, but for some reason I cannot figure out...and I need your help!
I am writting a bash scrip that should be executed using "my_script X Y Z T" where X Y Z and T can be any string, but there can be any number of arguments.
I want my script to do... (4 Replies)
Discussion started by: jolecanard
4 Replies
3. Shell Programming and Scripting
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies
4. UNIX for Dummies Questions & Answers
I have two very large datasets (>100MB) in a simple vertical list format. They are of different size and with different order and formatting (e.g. whitespace and some other minor cruft that would thwart easy regex).
Let's call them set1 and set2.
I want to check set2 to see if it contains... (2 Replies)
Discussion started by: uiop44
2 Replies
5. Shell Programming and Scripting
This is what I have:
#!/bin/bash
#ascript.sh
WORD1=`tail -n +$1 /home/gscn/word1.txt | head -1`
sed -e "s/WORD1/$WORD1/g" < /home/gscn/configtmp > /home/gscn/config
WORD2=`tail -n +$1 /home/gscn/word2.txt | head -1`
sed -e "s/WORD2/$WORD2/g" < /home/gscn/config2tmp >... (4 Replies)
Discussion started by: guitarscn
4 Replies
6. Shell Programming and Scripting
Hello Everyone,
I am stuck with one issue while working on abstract flat file which i have to use as input and load data to table.
Input Data-
------ ------------------------ ---- -----------------
WFI001 Xxxxxx Control Work Item A Number of Records
------ ------------------------... (5 Replies)
Discussion started by: sonali.s.more
5 Replies
7. Programming
Hello,
The arguments are strings. In my code I need them to be a different type, I do the cast but it is not feasible ...
Have you any idea?
Thank you (8 Replies)
Discussion started by: chercheur857
8 Replies
8. Shell Programming and Scripting
Dear Users,
I have installed a standalone program to do multiple sequence alignment which takes user parameters to run the program. I have multiple sequence files and want to automate this process through a bash script. I have tried to write a small bash code but its throwing errors.
Kindly... (13 Replies)
Discussion started by: biochemist
13 Replies
9. UNIX for Beginners Questions & Answers
I can't seem to get this right. I've tried it every way imaginable using every trick I see on stackexchange and such. No luck. So nothing major here, something like:
#!/bin/bash
SEARCH="ARG1 ARG2 '((^EXACT$)|(.*InTheMiddle*)|(^AtBeginning*))'"
java -cp /my/class/path MyClassName $SEARCH... (3 Replies)
Discussion started by: stonkers
3 Replies
LEARN ABOUT DEBIAN
binstats
BINSTATS(1) Debian Manual BINSTATS(1)
NAME
binstats - display statistics about programs and libraries
SYNOPSIS
binstats [-b[inaries]=bindirs] [-d[ebug]] [-s[kip-debian] [-f[ile]=logfile] [-l[ibraries]=libdirs] [-m[anuals]=mandirs] [-p[ath]=path]
[-t[emp]=tmpdir]
binstats -h[elp]
binstats -v[ersion]
OPTIONS
-binaries bindirs
bindirs is a quoted list of whitespace delimited directories where programs should be searched for.
-debug Store temporary files in the current directory and do not remove them when finished.
-skip-debian
Skip Debian tests that analyse installed packages even if this is a Debian system.
-file logfile
Output report to logfile instead of standard output.
-help Display a usage summary and exit.
-libraries libdirs
libdirs is a quoted list of whitespace delimited directories where libraries should be searched for.
-manuals mandirs
mandirs is a quoted list of whitespace delimited directories where manpages should be searched for.
-path path
Use the specified path instead of the value of the environment variable PATH.
-temp tmpdir
Store temporary files in tmpdir instead of the value of the environment variable TMPDIR, if defined, or /tmp.
-version
Output version information and exit.
AUTHOR
Peter Chang <Peter.Chang@nottingham.ac.uk>. This manual page was originally written by Matej Vela <vela@debian.org>.
Debian Project October 31, 1999 BINSTATS(1)