10-20-2004
extract command
hey
i want to extract an argument from double qoutes, eg: when the user enters:
prompt "mile"
i need to extract everything within the double quotes, in my case, mile, and save it to a string. feedback/code would be appreciated
thanks
mile1982
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I need to extract IP info from few large files into a single file with IP info only. I guess I can use grep, uniq and redirection but I not sure how. Is there a way to do this with a single command? Your help is greatly appreciated. (7 Replies)
Discussion started by: di0de
7 Replies
2. Shell Programming and Scripting
I need help in extracting first file only from an ls command
and store it in a local variable
I thought using awk we could build something - not very
familiar how to do it
Something like
ls -t $search_string and store the resultant
first file alone into a local variable ( as my result... (4 Replies)
Discussion started by: prekida
4 Replies
3. UNIX for Dummies Questions & Answers
I have been slowly working towards getting a shell window in Cygwin (and/or Gnome and/or KDE) to start up and display the last time it was opened (or sourced) similarly to how the OS X Terminal does so. As close as I've been able to get so far is the 'who' command, but I can't seem to puzzle out... (2 Replies)
Discussion started by: SilversleevesX
2 Replies
4. Shell Programming and Scripting
I need to extract information (for example, file owner, directory path, etc). However, the code below does not work? What is wrong?
find /usr/local/www/apache22/data/dev/chown_test -ls
for i in *
do
cut -f 1,2 "$i" | echo
done (3 Replies)
Discussion started by: montana24
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'm new to unix so hopefully you can help!
I'm using the below command to extract a tables contents and store it in a dmp file:
exp OWNER/OWNER@LINK FILE=exp.dat TABLES=TABLE_TEST
This works fine and dumps the table into the exp.dat file.
What i can't figure out, is how to... (3 Replies)
Discussion started by: boijie
3 Replies
6. Shell Programming and Scripting
how to use expr command to retrieve all the words before the equal sign "=" with shell script (3 Replies)
Discussion started by: 76455
3 Replies
7. Shell Programming and Scripting
Hi,
I am having an file 20110909.tar.gz (path-home/user01/archive/20110909.tar.gz ), contains some log files some csv files
I want to extract that files . if i run "ls" command then their should be display all the log files and csv files on the same path.
please help me to know the... (4 Replies)
Discussion started by: aish11
4 Replies
8. Shell Programming and Scripting
When I try to extract tty from ps command , at time we get output , at times we dont.
for eg i executed below quesry continulusly for some time,Actually i feel its because sometime pid allocated has some additional space at begining which causes this issue.
->ps | grep "/-ksh" | tail -1 | cut -f4... (2 Replies)
Discussion started by: lalitpct
2 Replies
9. Shell Programming and Scripting
Hi Folks,
I want to use particular number as a variable output..Please find the below for scenario...
Example 1:-
Below output i want to use secondary group 9003 as a variable output
$ id -a |awk -NF '{print $3}'
groups=99(local),9003(testadmin)
Else
I want to use 2006 as a... (8 Replies)
Discussion started by: susindram
8 Replies
10. Shell Programming and Scripting
Hi All,
I have a word and from that word would like to search for certain set of string, is there any command to do so ?
EX :
Components
from the above word, would like to search for strings set and extract the search string and then do if stmt...
pon
nen
ent
Com
say... (2 Replies)
Discussion started by: Optimus81
2 Replies
LEARN ABOUT REDHAT
pdl::gslsf::trig
TRIG(3) User Contributed Perl Documentation TRIG(3)
NAME
PDL::GSLSF::TRIG - PDL interface to GSL Special Functions
DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library.
SYNOPSIS
Functions
FUNCTIONS
gsl_sf_sin
Signature: (double x(); double [o]y(); double [o]e())
Sin(x) with GSL semantics.
gsl_sf_cos
Signature: (double x(); double [o]y(); double [o]e())
Cos(x) with GSL semantics.
gsl_sf_hypot
Signature: (double x(); double xx(); double [o]y(); double [o]e())
Hypot(x,xx) with GSL semantics.
gsl_sf_complex_sin
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Sin(z) for complex z
gsl_sf_complex_cos
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Cos(z) for complex z
gsl_sf_complex_logsin
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Log(Sin(z)) for complex z
gsl_sf_lnsinh
Signature: (double x(); double [o]y(); double [o]e())
Log(Sinh(x)) with GSL semantics.
gsl_sf_lncosh
Signature: (double x(); double [o]y(); double [o]e())
Log(Cos(x)) with GSL semantics.
gsl_sf_polar_to_rect
Signature: (double r(); double t(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Convert polar to rectlinear coordinates.
gsl_sf_rect_to_polar
Signature: (double x(); double y(); double [o]r(); double [o]t(); double [o]re(); double [o]te())
Convert rectlinear to polar coordinates. return argument in range [-pi, pi].
gsl_sf_angle_restrict_symm
Signature: (double [o]y())
Force an angle to lie in the range (-pi,pi].
gsl_sf_angle_restrict_pos
Signature: (double [o]y())
Force an angle to lie in the range [0,2 pi).
gsl_sf_sin_err
Signature: (double x(); double dx(); double [o]y(); double [o]e())
Sin(x) for quantity with an associated error.
gsl_sf_cos_err
Signature: (double x(); double dx(); double [o]y(); double [o]e())
Cos(x) for quantity with an associated error.
AUTHOR
This file copyright (C) 1999 Christian Pellegrin <chri@infis.univ.trieste.it> All rights reserved. There is no warranty. You are allowed to
redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this
file is separated from the PDL distribution, the copyright notice should be included in the file.
The GSL SF modules were written by G. Jungman.
perl v5.8.0 2003-01-29 TRIG(3)