07-25-2012
Quote:
Originally Posted by
balajesuri
The highlighted line above may be shortened as for i in {1..10}.
Is it possible to change the code based on the number of user inputs . For example user will give n number of inputs which needs to be store on a file and perform task based on the values of the file .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
if my user has to enter the name of months to carry out a search how can I limit the input values to only the month names and nothing else?
so far my input criteria for the user is this:
i would like it so the user can only enter the months in the way i have stated. otherwise they would... (11 Replies)
Discussion started by: amatuer_lee_3
11 Replies
2. Shell Programming and Scripting
Hi,
Lets say I have a script "ss" which does this
read abc
echo $abc
read pqr
echo $pqr
Now if I want to pass and argument to only "abc" how do I do it.
If I do
echo "somevalue" | ss, it does not prompt for pqr and its value comes out as blank.
Any help is appreciated
Thanks
P (6 Replies)
Discussion started by: patjones
6 Replies
3. Shell Programming and Scripting
I need to write what I thought would be a fairly simple 2-line UNIX script. It can be written PERL, csh, ksh...or whatever is easiest.
The entire script will be:
Begin Scipt
source MySourceFile
execute MyExecutable.exe
End Script
The problem is that MySourceFile can not be... (1 Reply)
Discussion started by: MMorrison
1 Replies
4. Shell Programming and Scripting
Hi Friends,
I am wrinting a shell script MorningChecks.sh which will call another script StartServer.sh. But the latter script requires user's inputs to complete. I want to automate this.
So can you please let me how this can be achieved?
Any help would be highly appereciated.
... (3 Replies)
Discussion started by: singh.chandan18
3 Replies
5. Shell Programming and Scripting
Hi,
Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance.
echo "please enter file names";
read name;
echo $name>/tmp/test (11 Replies)
Discussion started by: rogerben
11 Replies
6. Shell Programming and Scripting
Hi Everyone,
1) I really cannot figure out how to pass multiple user inputs in a script. really need your help re this. below is the script.
-----------
#!/bin/sh
# script name: ask.sh
echo "Enter name: \c"
read NAME
echo "Your name is $NAME\n"
echo "Enter age: \c"
read AGE
echo... (5 Replies)
Discussion started by: mcoblefias
5 Replies
7. UNIX for Dummies Questions & Answers
When using Oracle, we have an option to turn spool on, which records that transactions and output to a file. Any such options on UNIX, where I can get everything I have on my screen into a file? That would be helpful in documenting the OS level changes that I perform manually.
regards
Roshni (1 Reply)
Discussion started by: RoshniMehta
1 Replies
8. Shell Programming and Scripting
Hello,
I am new to awk and I am trying to figure out how to print an output based on user input.
For example:
ubuntu:~/scripts$ steps="step1, step2, step3"
ubuntu:~/scripts$ echo $steps
step1, step2, step3
I am playing around and I got this pattern that I want:
... (3 Replies)
Discussion started by: tattoostreet
3 Replies
9. Shell Programming and Scripting
Need a bash script that will ask the user: Which Files Would you like to copy?
Then the user would input the filenames (space seperated, all lowercase)
The script would then cp each file to /data/backup/ and also wc the files to std output. (to see how many lines each file has)
Should go... (5 Replies)
Discussion started by: ajp7701
5 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am new to bash scripting and i wanted to make a bash script that will generate a password for a user. The user must enter his/her name and the url of the site the password is used for. And the script will generate a password with those two elements in the password. So if the url is... (0 Replies)
Discussion started by: Kvr123
0 Replies
LEARN ABOUT DEBIAN
envy24control
envy24control(1) envy24control(1)
NAME
envy24control - GUI control tool for Envy24 (ice1712) based soundcards, under ALSA.
SYNOPSIS
envy24control [-c card-number] [-D control-name] [-o 0-num DACs max 8] [-i 0-num ADCs max 8] [-p 0-8] [-s 0-2] [-f <profiles file name>]
[-v] [<profile number>|<profile name>] [-m midi-channel] [-M] [-w window-width] [-t 0-9]
DESCRIPTION
envy24control allows control of the digital mixer, channel gains and other hardware settings for sound cards based on the ice1712 chipset
(Midiman Delta series, Terratec EWS and EWX series). It also displays a level meter for each input and output channel.
INVOKING
envy24control [-c card-number] [-D control-name] [-o 0-num DACs max 8] [-i 0-num ADCs max 8] [-p 0-8] [-s 0-2] [-f <profiles file name>]
[-v] [<profile number>|<profile name>] [-m midi-channel] [-M] [-w window-width] [-t 0-9]
If no control-name is given, then the first sound card is used.
Options
-c card-number
Use the card specified by card-number rather than the first card. This is equivalent with -Dhw:n option where n is the card number.
-D control-name
Use the card specified by control-name rather than the first card, normally this will be of the form hw:n where n is the sound card
number (zero-based). This is only needed if you have more than one Envy24-based card or if your Envy24 card is not configured as the
first card in your ALSA driver setup.
-o outputs
Limit number of analog line outputs to display. Default is the number of DACs in the driver specification. Maximum is 8. The num-
ber of analog output lines can only be reduced from the available number of output lines.
-i inputs
Limit number of analog line inputs to display. Default is the number of ADCs in the driver specification. Maximum is 8. The number
of analog input lines can only be reduced from the available number of input lines.
-p pcm outputs
Limit number of PCM outputs to display. Default is 8.
-s spdif inputs/outputs
Limit number of SPDIF inputs/outputs to display. Default is 2.
-f name and path of the profiles file name.
From/to this file will envy24control read/write the alsactl settings. If is not given DEFAULT_PROFILERC or for restore if
DEFAULT_PROFILERC doesn't exists SYS_PROFILERC will be used.
-v view spdif playback channels in the mixer.
It is not possible to manage something (muting, volume levels). It is only to view the levelmeters. Default is no view of spdif
playback channels in the mixer.
-m midi-channel
Use MIDI controller values to control the Faders in the mixer view. The application will react to controllers on channel midi-chan-
nel and send controllers on this channel when the user moves the GUI sliders.
-M Use an enhanced mapping from midi controller values to db sliders.
-w window-width
Specify the initial width of the envy24control window. Using window-width in the range 0-20 specifies approx number of mixer chan-
nels visible. Values >20 are interpreted as screen pixels.
-t tall-equal mixer heights
Using -t 1 enlarges the channel mixers to the same height as the digital mixer. With values >1 the height of all mixers is
increased in stages. -t 0 is the default, set for minimum window height.
SEE ALSO
alsamixer(1), amixer(1), gamix(1)
AUTHOR
envy24control is by Jaroslav Kysela <perex@perex.cz> This document is by James Tappin <james@xena.uklinux.net>. Updated by Dirk Kalis
<dirk.kalis@t-online.de>. Options-w and -t added Alan Horstmann <gineera@aspect135.co.uk>
30 July 2005 envy24control(1)