To get these errors, you must have omitted the space between [ and $VALUE. Please retry this using the EXACT spacing shown in Scrutinizer's suggestion.
This User Gave Thanks to Don Cragun For This Post:
#!/usr/bin/sh
echo "Enter reason:"
echo "> \c"
read $reason
$reason >> access.log
This doesnt work for me. Can someone tell me how I would read the input from what the person types, and then append that to the log file?
Regards (2 Replies)
Hi guys ,
As you know normally ' read ' statement waits
for the user to press enter and then terminates
the input .............
Can anyone of u tell me how do i read a
single character from input without waiting
for the user to press enter ................
Thanks,
Nagesh. (1 Reply)
how do we read input from a user
e.g i want to ask a user to enter 6 sets of numbers
how do i control information from the user?
i have this.......
#!/bin/bash
echo "Please enter six numbers"
read number
echo $number >> file1
but this stops after the first number..how can i... (2 Replies)
I am trying to read input for a C program (that expects input from the user) from a file using the shell command:
progname < filename
but it seems that the program considers the char '<'
as the first input, hence causing an "error" in my program.
I checked it with another program and it... (2 Replies)
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Okay, so I've looked on here and found some similar things, but not exactly what I am looking for. I am working on creating a script that can back up some files, based on the contents of another file - the configuration file.
First file contains the files to back up - we'll call this... (1 Reply)
I am trying to edit a file in shell script using sed. I need to get the input from command line
suppose
script.sh
sed"/s place=/place=california/g" > /root/user/mark.txt
echo " place changed "
the above code searches for string place in the file mark.txt and replaces with place=... (5 Replies)
Hello,
I am new to scripting.
How do I read multiple lines from the command line?
I know read reads one line, but if I have to read multiple lines, how should I do?
Thanks,
Prasanna (4 Replies)
So, I am new to shell scripting and have a few problems.
I know how to read from standard input but I do not know how to really compare it to say, a character. I am trying to compare it to a character and anything exceeding just a character, the user will get an output message, but the program... (7 Replies)
echo "Enter the Value : "
read value
sed '1s:\(.\{6\}\)\(.\{4\}\):\1'$value':' flextran$RUN_DATE-completed.txt > temp.txt
mv temp.txt flextran$RUN_DATE-completed.txt
on the run time after entering the input value it waits for keystroke and the values is not input to the function
The output... (4 Replies)
Discussion started by: rammm
4 Replies
LEARN ABOUT NETBSD
mixerctl
MIXERCTL(1) BSD General Commands Manual MIXERCTL(1)NAME
mixerctl -- control audio mixing
SYNOPSIS
mixerctl [-d file] [-n] [-v] -a
mixerctl [-d file] [-n] [-v] name ...
mixerctl [-d file] [-n] -w name=value ...
mixerctl [-d file] [-n] -w name++ ...
mixerctl [-d file] [-n] -w name-- ...
mixerctl [-d file] [-n] -w name+=value ...
mixerctl [-d file] [-n] -w name-=value ...
DESCRIPTION
The mixerctl command displays or sets various audio system mixing variables. If a list of variables is present on the command line, then
mixerctl prints the current value of those variables for the specified device. If the -a flag is specified, all variables for the device are
printed. If the -w flag is specified, mixerctl attempts to set the specified variables to the given values.
The -d flag can be used to give an alternative mixer device. The default is /dev/mixer.
The -n flag suppresses printing of the variable name.
The -v flag shows the possible values of enumeration and set valued variables. Enumerated values are shown in brackets (``[]'') and set val-
ues are shown in curly braces (``{}'').
The exact set of controls that can be manipulated depends on the mixer. The general format (in both getting and setting a value) is
class.name = value
class can have values like inputs or outputs, indicating that the control affects the input or output of the mixer, respectively. name indi-
cates what part of the mixer the control affects. Continuous mixer values, e.g., volume, have numeric values in the range 0-255. If value
can be set for each channel independently, the values are printed separated by commas. Discrete mixer values, e.g., the recording source,
have symbolic names. Depending on the mixer it may either be an enumeration or a set.
The suffixes ++ and -- can be used to step through the values of a mixer control. For numeric controls, these operators increase or
decrease, respectively, the value by an amount (the delta) suitable to make the control assume the next possible value. For binary controls,
these operators toggle between on and off.
The operators += and -= change the value of a mixer control by the indicated number of steps.
ENVIRONMENT
MIXERDEVICE the mixer device to use.
FILES
/dev/mixer mixer audio device
/etc/mixerctl.conf mixer configuration file
EXAMPLES
The command
mixerctl -a -v
can produce
inputs.mic=0,0 volume
inputs.mic.mute=off [ off on ]
inputs.cd=220,220 volume
inputs.cd.mute=off [ off on ]
inputs.dac=220,220 volume
inputs.dac.mute=off [ off on ]
record.record=220,220 volume
record.record.source=mic [ mic cd dac ]
monitor.monitor=0 volume
COMPATIBILITY
The old -f flag is still supported. This support will be removed eventually.
SEE ALSO audioctl(1), audio(4), mixerctl.conf(5), sysctl(8)HISTORY
The mixerctl command first appeared in NetBSD 1.3.
BSD August 15, 2008 BSD