06-14-2018
Hi Rama,
Its not clear on what you are looking for.
Can you share sample input and output you are expecting.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
For a Script I need to detemine which field of the unix environment variable SHLIB_PATH has the
WALTDB entry.
export SHLIB_PATH=/usr/user5/WALTDB/oracle/product/10.2.0/lib32:/usr/TZD/bin.wdad/mug/oracle/lib:
echo $SHLIB_PATH | awk -F: '{ print $1 }'
Shure gives me the first entry, but... (6 Replies)
Discussion started by: sdohn
6 Replies
2. Shell Programming and Scripting
guys,
I need to know how to assing pattern matched string as an input command variable. Here it goes'
My script is something like this.
./routing.sh <Server> <enable|disable>
## This Script takes an input <Server> variable from this line of the script ##
echo $1 | egrep... (1 Reply)
Discussion started by: raghunsi
1 Replies
3. Shell Programming and Scripting
I want to replace a certain pattern with the variable already defined.
e.g.
set path_verilog = /home/priya/bin/verilogfile
my file contents are :
verilog new
verilog is defined here verilog_path_comes
I am using the below command
sed 's/verilog_path_comes/'$path_verilog'/g' <filename>... (2 Replies)
Discussion started by: nehashine
2 Replies
4. Shell Programming and Scripting
Im trying to parse ifconfig with awk and setup a bunch of variables in one shot. But Im having trouble figuring out how to work with data in previous lines.
ifconfig output:
eth0 Link encap:Ethernet HWaddr 00:50:DA:10:7F:1B
inet addr:10.10.10.10 Bcast:10.10.10.127 ... (0 Replies)
Discussion started by: trey85stang
0 Replies
5. Shell Programming and Scripting
Hi All,
I have the below file data.txt.Using awk i want to grep all the zone data.Form the below command i can extact data upto of zone i give but i want it should print until next pattern.
awk '/^Total Collection /{c=5;next}c-->0' zin45srs08.tools_utilization
instead of c=5 is it possible... (5 Replies)
Discussion started by: ajaincv
5 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am trying to find numbers with balance greater than 1 and less than equal 2 from the below file using awk
Input file
num ,bal
100199,1.708
100225,0
100226,0
100228,0.771166
100232,2
output file
100199,1.708
100232,2
I am using the following command for this... (2 Replies)
Discussion started by: pistachio
2 Replies
7. Shell Programming and Scripting
Hello Guyz
I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline
ABC
DEF
LMN
EFG
HIJ
LMN
OPQ
In the above text i need to... (8 Replies)
Discussion started by: RickCharles
8 Replies
8. Shell Programming and Scripting
hi,
i have a variable which contains some file names delimited by a single space.
FNAME="s1.txt s2.lst s3.cvs s4.lst"
i have another variable that contains a pattern
FILE_PATTERN="*.lst"
i want to take the filenames from FNAME variable and assign each file name in to an array say
for... (8 Replies)
Discussion started by: Little
8 Replies
9. Shell Programming and Scripting
Input:
|Running the Rsync|Sun Oct 16 22:48:01 BST 2016
|End of the Rsync|Sun Oct 16 22:49:54 BST 2016
|Running the Rsync|Sun Oct 16 22:54:01 BST 2016
|End of the Rsync|Sun Oct 16 22:55:45 BST 2016
|Running the Rsync|Sun Oct 16 23:00:02 BST 2016
|End of the Rsync|Sun Oct 16 23:01:44 BST 2016... (4 Replies)
Discussion started by: busyboy
4 Replies
10. UNIX for Beginners Questions & Answers
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT REDHAT
esdctl
ESDCTL(1) Enlightened Sound Daemon ESDCTL(1)
NAME
esdctl - The Enlightened Sound Daemon
DESCRIPTION
Command-line control program for EsounD
USAGE
esdctl [options] [command]
options: "-s", --server=host:port contact esd server on host at port
commands:
lock foreign clients may not use the server
unlock foreign clients may use the server
standby, off suspend sound output for other programs
resume, on resume sound output
cache sample cache a sample in the server
getid name retrieve a sample id from its name
free name uncache a sample in the server
play name play a cached sample once
loop name make a cached sample loop
stop name stop the looping sample at end
serverinfo get server info from server
allinfo get player and sample info from server
panstream id left right set panning for a stream
pansample id left right set default panning for a sample
- left/right pan values scaled to 256.
standbymode see if server's on standby, etc.
SEE ALSO
esd(1), esdcat(1), esddsp(1), esdloop(1), esdplay(1), esdsample(1), esd-config(1), esdfilt(1), esdmon(1), esdrec(1)
3rd Berkeley Distribution EsounD 0.2.28 ESDCTL(1)