04-18-2013
That works!
Thank you. That works well.
How can I set a variable with a space in it?
"dir 1" and "dir\ 1" don't work.
I'm interested if having spaces in the variable definition would also work.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Struggling to add numbers in shell script..
ie.
a=3
b=4
c=$a + $b
echo $c
I thought this should give me 7 - but cannot see what wrong.. should be simple answer eh? (8 Replies)
Discussion started by: frustrated1
8 Replies
2. Shell Programming and Scripting
Hello all,
Can somebody explain to me how set up a basename and dirname variable to simplify this script. I currently have a 'infile' with the contents of FTTPDataPVC_ & BaaisDSLFeed. I need to add a basename and or dirname variable so that any additions can be made through the infile and not... (1 Reply)
Discussion started by: liketheshell
1 Replies
3. Shell Programming and Scripting
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
Discussion started by: arsidh
10 Replies
4. Shell Programming and Scripting
hi,
i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies
5. UNIX for Dummies Questions & Answers
# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi
espeacailly the top regex part?
---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
Discussion started by: kevin298
1 Replies
6. Shell Programming and Scripting
So I'm trying to pass certain json elements as env vars and use them later on in a script.
Sample json:
JSON='{
"Element1": "file-123456",
"Element2": "Name, of, company written in, a very weird way",
"Element3": "path/to/some/file.txt",
}'
(part of the) script:
for s... (5 Replies)
Discussion started by: da1
5 Replies
7. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
8. Shell Programming and Scripting
Im looking for 2 Files -> *.WAV and *.wav with
find . -name 'unavail.wav' -o -name 'unavail.WAV' I need to list the Folders that contains these 2 Files?
Thx in advance (13 Replies)
Discussion started by: valdez
13 Replies
9. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
10. UNIX for Beginners Questions & Answers
So, let's say I have a usual batch rename file like this:
and I'd like to have a secon bat file, that can /reverse" the first.
BUT, I don't want to simply "rewrite" it like
move hello 254352426
but rather, have the new script take the source and destination and reverse it somehow... (6 Replies)
Discussion started by: pasc
6 Replies
LEARN ABOUT DEBIAN
autoreconf2.13
AUTORECONF(1) General Commands Manual AUTORECONF(1)
NAME
autoreconf2.13 - update configure scripts
SYNOPSIS
autoreconf2.13 [ --help | -h ] [ --force | -f ] [ --localdir=dir | -l dir ] [ --macrodir=dir | -m dir ] [ --verbose ] [ --version ]
DESCRIPTION
If you have a lot of Autoconf-generated configure scripts, the autoreconf2.13 program can save you some work. It runs autoconf2.13 (and
autoheader2.13, where appropriate) repeatedly to remake the Autoconf configure scripts and configuration header templates in the directory
tree rooted at the current directory. By default, it only remakes those files that are older than their configure.in or (if present) aclo-
cal.m4. Since autoheader2.13 does not change the timestamp of its output file if the file wouldn't be changing, this is not necessarily
the minimum amount of work. If you install a new version of Autoconf, you can make autoreconf2.13 remake all of the files by giving it the
--force option.
If you give autoreconf2.13 the --macrodir=DIR or --localdir=DIR options, it passes them down to autoconf2.13 and autoheader2.13 (with rela-
tive paths adjusted properly).
autoreconf2.13 does not support having, in the same directory tree, both directories that are parts of a larger package (sharing aclocal.m4
and acconfig.h), and directories that are independent packages (each with their own aclocal.m4 and acconfig.h). It assumes that they are
all part of the same package, if you use --localdir, or that each directory is a separate package, if you don't use it. This restriction
may be removed in the future.
autoreconf2.13 accepts the following options:
--help
-h Print a summary of the command line options and exit.
--force
-f Remake even configure scripts and configuration headers that are newer than their input files (configure.in and, if present, aclo-
cal.m4).
--localdir=DIR
-l DIR Look for the package file aclocal.m4 in directory DIR instead of in the current directory.
--macrodir=DIR
-m DIR Look for the installed macro files in directory DIR. You can also set the AC_MACRODIR environment variable to a directory; this
option overrides the environment variable.
--verbose
Print the name of each directory where autoreconf2.13 runs autoconf2.13 (and autoheader2.13, if appropriate).
--version
Print the version number of Autoconf and exit.
SEE ALSO
autoconf2.13(1), autoheader2.13(1), autoscan2.13(1), autoupdate2.13(1), ifnames2.13(1)
AUTHORS
David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David D.
Zuhn, and many others. This manpage written by Ben Pfaff <pfaffben@debian.org> for the Debian GNU/Linux autoconf2.13 package.
Autoconf AUTORECONF(1)