Sponsored Content
Full Discussion: Getting user input
Top Forums Shell Programming and Scripting Getting user input Post 302107302 by stevefox on Friday 16th of February 2007 01:09:55 AM
Old 02-16-2007
Thanks anbu23 and matrixmadhan!

It worked!

Cheers
Steve
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

user input date

I am trying write a script that takes user input date in the format "Mar 18". If it is march1 it is like "Mar 1" . Once i take this input i will go back to my log files and search for any failed transactions recorded that day. If there are then i will send it to a file and mail it. I am... (10 Replies)
Discussion started by: gundu
10 Replies

2. UNIX for Dummies Questions & Answers

accept user input?

how would i accept user input from the keyboard? (2 Replies)
Discussion started by: JamieMurry
2 Replies

3. Shell Programming and Scripting

How to get the user input recursively until the user provides valid input

Hi, echo "Enter file name of input file list along with absolute path : " read inputFileList if then for string in `cat inputFileList` do echo $string done else echo " file does not exist" fi From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies

4. Shell Programming and Scripting

Script interacts with user , based on user input it operates

i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled. #!/bin/sh echo " Enter your choice to continue y/Y OR n/N to quit " read A if then echo " user requested to continue " ##some commands... (7 Replies)
Discussion started by: only4satish
7 Replies

5. Shell Programming and Scripting

Check user input

Hi, I need my script to check if the user enters 3 values if not 5 values to my script and alert if the input has any other number of values. for example: ./myscript.sh 22 56 3221 - > correct ./myscript.sh 22 56 3221 45 777 -> correct ./myscript.sh 22 56 3221 45 -> incorrect Please... (6 Replies)
Discussion started by: mohtashims
6 Replies

6. Shell Programming and Scripting

How-To Trim user input

Hi, The user inputs either "/tmp/bea" or "/tmp/bea/". Regardless my script should extract and store in a variable the last directory in the user input path. Desired output: "bea" Please help. (6 Replies)
Discussion started by: mohtashims
6 Replies

7. Shell Programming and Scripting

How to validate user's input..?

$Input_filename=$ARGV; if (!-d $Input_filename && ! -e $Input_filename) { print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n"; exit; } 1. Input Is suppose to be something like "$ABCD/def/dsed.txt". if the input is wrong the script should throw an ERROR message.... (2 Replies)
Discussion started by: Rashid Khan
2 Replies

8. UNIX for Dummies Questions & Answers

Clumsy user input

The (longer) script that I am working on does something like this: #!/bin/bash while true do clear sleep 1 shuf -i1-2 -n1 sleep .1 clear echo "Press 1 if you saw a 1. Press 2 if you saw a 2." read -s -n1 RESPONSE done If the user accidentally presses two... (1 Reply)
Discussion started by: darwin_886
1 Replies

9. Shell Programming and Scripting

User input and run awk using the input

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

10. Shell Programming and Scripting

Controlling user input

I'm trying to use a bash script for a psych experiment that involves listening to sound files and responding. If I have something like the code below, how can I make sure that a key press is assigned to RESPONSE only after the second echo statement? for i in 1 2 3; do echo "Ready?" sleep 2 ... (10 Replies)
Discussion started by: darwin_886
10 Replies
LIBMIKMOD(1)						      General Commands Manual						      LIBMIKMOD(1)

NAME
libmikmod-config - script to get information about the installed version of libmikmod. SYNOPSIS
libmikmod-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--ldadd] DESCRIPTION
libmikmod-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link programs that use libmikmod. It is also used internally to the .m4 macros for GNU autoconf that are included with libmikmod. OPTIONS
libmikmod-config accepts the following options: --version Print the currently installed version of libmikmod on the standard output. --libs Print the linker flags that are necessary to link a libmikmod program. --ldadd Print the extra linker flags that are necessary to link a libmikmod program if it was compiled with the GNU C compiler. --cflags Print the compiler flags that are necessary to compile a libmikmod program. --prefix=PREFIX If specified, use PREFIX instead of the installation prefix that libmikmod was built with when computing the output for the --cflags and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified before any --libs or --cflags options. --exec-prefix=PREFIX If specified, use PREFIX instead of the installation exec prefix that libmikmod was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. AUTHORS
libmikmod is the result of the work of many people, including: Jean-Paul Mikkers, Jake Stine, Miodrag Vallat, Steve McIntyre, Peter Amstutz, and many others. A full list of people having worked on libmikmod can be found in the libmikmod source package. This man page was inspired by the gtk-config man page written by Owen Taylor. The k in ``Januark'' is not a typo. It's a genuine Y2K bug. Version 3.1.10, 3rd Januark 2000 LIBMIKMOD(1)
All times are GMT -4. The time now is 06:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy