02-24-2020
Hi
How to look at a sample line with '?' and headers
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Do you have any idea why the below sed command is also replacing the value of "PARAMETER2" instead of just "PARAMETER" in file1 ?
% parameter=PARAMETER
% new_value=2
% cat file1
PARAMETER=1
PARAMETER2=1
% cat file1 | sed s/*$/${new_value}/1
PARAMETER=2
PARAMETER2=2
Thanks. (3 Replies)
Discussion started by: majormark
3 Replies
2. Shell Programming and Scripting
Dear Guyz:)
I have 2 different input files like this. I would like to pick the values or letters from the inputfile2 based on inputfile1 keys (A,F,N,X,Z).
I have done similar task by using awk but in that case the inputfiles are similar like in inputfile2 (all keys in 1st column and values in... (16 Replies)
Discussion started by: repinementer
16 Replies
3. UNIX for Advanced & Expert Users
Thanks in advance.
My environment is Ubuntu 9.04 desktop customized to be a high school classroom server for teaching code development. I have a unique "fake" jail called "lshell" which is very easy to setup and restricts users to commands that I dictate DISALLOWING ANYTHING ELSE. These... (6 Replies)
Discussion started by: tuxhats
6 Replies
4. UNIX for Dummies Questions & Answers
Hi. Before throwing my question, thanks to everybody for paying attention. Sorry if my english isn't good enough, but it's not my mother tongue.
That's my question:
I have a java program that throws an external program with "Process p = Runtime.getRuntime.exec(***)". The communication between... (2 Replies)
Discussion started by: jlopezperez
2 Replies
5. Shell Programming and Scripting
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- I am trying to compare the values of Column1 of File1 with Column1 of File2. If a match is found, print the corresponding value from Column2 of File1 in Column5 of File2.
- I tried to modify and use... (10 Replies)
Discussion started by: Santoshbn
10 Replies
6. Shell Programming and Scripting
Hello All,
I have a below data in a .csv file where all rows where col1 is A, col2 is odd numbers, similarly even numbers for all rows where col1 is B.
Note that my data has some other columns(not shown here) too (around 100) after col2.
Tool,Data
A,1
A,3
A,5
....
so on
B,2
B,4
.... ... (4 Replies)
Discussion started by: ks_reddy
4 Replies
7. Shell Programming and Scripting
Hi,
I need a shell script, which would search the result values from another files.
1)execute " select column1 from table_name" query on the table.
2)Based on the result, need to be grep from .wft files.
could please explain about this.Below is the way i am using.
#!/bin/sh... (4 Replies)
Discussion started by: Rami Reddy
4 Replies
8. Shell Programming and Scripting
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies
9. Shell Programming and Scripting
Hi,
I want to replace a chain of if-else statement in an old AWK file with values from Db2 table or CSV file. The part of code is below...
if (start_new_rec=="true"){
exclude_user="false";
user=toupper($6);
match(user, "XXXXX.");
if (RSTART ==2 ) {
... (9 Replies)
Discussion started by: asandy1234
9 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Sorry for a dummy question I believe. I am just wanting to know how do I assign a default $1 argument if one is not provided.
At the moment, I am doing something like below:
arg1="${1:-foo}"And then I check $arg1 in case/esac. I am just wondering if there is a way for me to simply do... (3 Replies)
Discussion started by: newbie_01
3 Replies
esdctl(1) User Commands esdctl(1)
NAME
esdctl - Enlightened Sound Daemon (esd) control program
SYNOPSIS
esdctl [-h] [-s hostname:port] command
DESCRIPTION
The esdctl utility is a command-line control program for the Enlightened Sound Daemon (esd).
OPTIONS
The following options are supported:
-s hostname:portContact the esd server on hostname at port. You can also specify this option as follows:
--server=hostname:port
-h Display help text, and exit.
OPERANDS
The following operands are supported:
command The following commands are supported:
allinfo Get player and sample information from the server
cache sample Cache a sample in the server
free name Uncache a sample in the server
getid name Retrieve a sample id, given the sample name
lock Do not allow foreign clients to use the server
loop name Make a cached sample loop
off Suspend sound output so that other programs can use the audio device (this is the same as the standby
option)
on Resume sound output so that only esd can use the audio device (this is the same as the resume option)
pansample id lefSetidefault panning for a sample, where id is the sample ID, and left and right are integers in the range 0
to 255
panstream id lefSetipanning for a stream, where id is the stream ID, and left and right are integers in the range 0 to 255
play name Play a cached sample once
resume Resume sound output so that only esd can use the audio device (this is the same as the on option)
serverinfo Get server information from the server
standby Suspend sound output so that other programs can use the audio device (this is the same as the off option)
standbymode Check whether the server is on standby
stop name Stop the looping sample at the end
unlock Allow foreign clients to use the server
EXAMPLES
Example 1: Putting esd into Standby Mode
example% esdctl standby
Example 2: Ending Standby Mode
example% esdctl resume
Example 3: Loading a sample into the esd cache
example% esdctl cache info.wav
Sample <3> uploaded. Name = esdctl:info.wav
This output indicates that the sample id is 3, and the sample name is esdctl:info.wav.
Example 4: Getting a sample id from the esd cache
example% esdctl getid esdctl:info.wav
Example 5: Playing a sample from the esd cache
example% esdctl play esdctl:info.wav
Example 6: Playing and looping a sample
example% esdctl loop esdctl:info.wav
Example 7: Stopping a looped sample that is being played
example% esdctl stop esdctl:info.wav
Example 8: Removing a sample from the esd cache
example% esdctl free esdctl:info.wav
Example 9: Setting panning for a stream
example% esdctl panstream 1 100 155
Example 10: Setting panning for a sample
example% esdctl pansample 1 155 100
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/esdctl Executable for Enlightened Sound Daemon control program
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-audio |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
esdcat(1), esdplay(1), esdrec(1), esdsample(1), esdmon(1), esd-config(1), libesd(3)
NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003.
SunOS 5.10 8 Jan 2003 esdctl(1)