10-05-2011
Hi rdcwayx,
With the case command how does it know that option 2 and 3 are the same command just one thing different the variable declared $DIR?
Thanks,
Holyearth
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to write a script in KSH that takes the output of one command and redisplays it. Something like:
while true
do
read inpt
date +"%I:%M:%S %p <-> $inpt"
done
and then some how get the output of the ping command to redirect to the input of this script.
does that make sense? (2 Replies)
Discussion started by: IMTheNachoMan
2 Replies
2. Shell Programming and Scripting
i want the shell script to open the terminal and in that terminal i want to run a command specified in the script...
how can it be done... (2 Replies)
Discussion started by: chandrabhushan
2 Replies
3. Programming
Hi, I want to be able to write a simple program that takes in input from the command line. I;m am at the level of getchar and putchar. Any examples would be a great help thanks.
I intend/prefer also to use the pipe command | eg: input | file1
---------- Post updated at 04:08 PM ----------... (4 Replies)
Discussion started by: metros
4 Replies
4. Shell Programming and Scripting
Hi,
I am using SunOS
I want to serch my previous command
from unix prompt
(like on AIX we can search by ESC -k)
how to get in SunOs
urgent help require. (10 Replies)
Discussion started by: RahulJoshi
10 Replies
5. Shell Programming and Scripting
Hi
I would like to ask about my plan script
I have this several workstation want to monitor and execute a command without logging it we use "rsh $host "<command>" i create csh script using foreach to loop my several workstation, my problem with the rsh command is if it encounter a... (3 Replies)
Discussion started by: jao_madn
3 Replies
6. UNIX for Dummies Questions & Answers
I want to run
wget "URL" -SO /dev/null 2>&1 | grep "HTTP/\\|Age:\\|Last-Modified:"
but I want a alias so I can just type mywget and the URL and it will put the url in the right place and give me the output that I want without having to type that over and over again.:wall:
I am newbie to all... (2 Replies)
Discussion started by: splitradius
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am writing a little script to update a parameters on JMQ. however the JMQ requires a "y" confirmation to be input as part of the cmd I am running. However I want run this script to offline with no input from a user.
it works if a I create a file with with just y in it and pass that in... (3 Replies)
Discussion started by: shropshirehobbi
3 Replies
8. UNIX for Advanced & Expert Users
Hi I want to run some cmd before the linux boot up
and I want to let it run before sshd service start, any helps? (1 Reply)
Discussion started by: yanglei_fage
1 Replies
9. Shell Programming and Scripting
Hi
I have a different requirement,
I need to run some application on my device from a file app_name.txt one by one which is like this:
/usr/apps/email
/usr/apps/message
/usr/apps/settings
after each app while it is running I need to execute again one cmd like
ps -ef |grep... (2 Replies)
Discussion started by: Sanjeev Roy
2 Replies
10. Shell Programming and Scripting
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
ifnames2.13
IFNAMES(1) General Commands Manual IFNAMES(1)
NAME
ifnames2.13 - print identifiers that a package uses in C preprocessor conditionals
SYNOPSIS
ifnames2.13 [ --help | -h ] [ --macrodir=dir | -m dir ] [ --version ]
DESCRIPTION
ifnames2.13 can help when writing a configure.in for a software package. It prints the identifiers that the package already uses in C pre-
processor conditionals. If a package has already been set up to have some portability, this program can help you figure out what its con-
figure needs to check for. It may help fill in some gaps in a configure.in generated by autoscan2.13 (see autoscan2.13(1)).
ifnames2.13 scans all of the C source files named on the command line (or the standard input, if none are given) and writes to the standard
output a sorted list of all the identifiers that appear in those files in #if, #elif, #ifdef, or #ifndef directives. It prints each iden-
tifier on a line, followed by a space-separated list of the files in which that identifier occurs.
ifnames2.13 accepts the following options:
--help
-h Print a summary of the command line options and exit.
--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.
--version
Print the version number of Autoconf and exit.
SEE ALSO
autoconf2.13(1), autoheader2.13(1), autoreconf2.13(1), autoscan2.13(1), autoupdate2.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 IFNAMES(1)