06-25-2009
gorgeous!
thanks, i am bad...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All -
I have a situation where I have some hardcoded directories in a file. I want to be able to search for string that I know will always be the same in each environment and then replace that entire line with the new environment specific information. I am using the sed command to do this, but... (2 Replies)
Discussion started by: Mark_A_Tritz
2 Replies
2. UNIX for Advanced & Expert Users
a=2
sed -n "/${a}/p" list | cut -d "#" -f1
this dosen't print only second line.....
how can it b done.... (1 Reply)
Discussion started by: bishweshwar
1 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to use sed to delete the last three lines of a file. I currently have:
# get the amount of lines in the file
foldernum=`wc -l File_In.txt | cut -c1-8`
# remove the lines in the file
sed "${foldernum}-3,${foldernum}d" File_In.txt > File_Out.txt
I get the error - sed:... (5 Replies)
Discussion started by: Mr_Plow
5 Replies
4. Shell Programming and Scripting
HELP!!!
I'm keep getting "sed: Function s/PETS/dog cannot be parsed."
I have 2 files that list...
# cat FILE1.txt
dog
cat
mouse
# cat FILE2.txt
my pets are
PETS
I put this into a variable...
# A=`cat FILE1.txt`
# sed "s/PETS/$A" FILE2.txt > FILE3.txt (5 Replies)
Discussion started by: Zenwork
5 Replies
5. Shell Programming and Scripting
I'm trying to get sed to cut and replace using variables, but it doesnt seem to work, when I run this the mod time of the file does get updated. Is my syntax incorrect in the sed command?
Thanks
#!/usr/bin/ksh
#Modify header
set -x
HEAD=$(cat PBN2CPR1.TXT | awk 'BEGIN { FS = ","... (1 Reply)
Discussion started by: ddurden7
1 Replies
6. Shell Programming and Scripting
GNU sed version 4.1.4 on Windows XP SP3 from GnuWin32
I think that I've come across a seemingly simple text file change problem on a INI formatted file that I can't do with SED without side effects edge cases biting me. I've tried to think of various ways of doing this elegantly and quickly... (5 Replies)
Discussion started by: JakFrost
5 Replies
7. Shell Programming and Scripting
All
I am trying to produce the following in /etc/ssh/sshd_config,
# IPv4 only
#ListenAddress 0.0.0.0
# IPv4 & IPv6
ListenAddress ::
to
# IPv4 only
ListenAddress <user-entry>
ListenAddress <user-entry>
# IPv4 & IPv6
#ListenAddress ::
The number of user entries can vary.
... (1 Reply)
Discussion started by: miyoung999
1 Replies
8. Shell Programming and Scripting
Im trying to use sed to print value that matches the value in variable and all lines after that.
grep "Something" test.txt | sed -e '/{$variable}/,$b' -e 'd'
I cant get it work, if I replace the $variable with the value it contains, it works fine... (10 Replies)
Discussion started by: olkkis
10 Replies
9. Shell Programming and Scripting
Hello!
I have a problem to insert variables with sed... And I can't find the solution. :confused:
I would like to display one/few line(s) between 2 values.
This line works well
sed -n '/Dec 12 10:42/,/Dec 12 10:47/p'
Thoses lines with variables doesn't work and I don't find the... (2 Replies)
Discussion started by: Castelior
2 Replies
10. Shell Programming and Scripting
Hello,
I am processing text files looking for a string and replacing the first occurrence of the string with something else.
For the text,id Name
1 methyl-(2-methylpropoxy)-oxoammonium
2 N-amino-N-(methylamino)-2-nitrosoethanamine
3 3-methoxy-3-methyloxazolidin-3-ium... (12 Replies)
Discussion started by: LMHmedchem
12 Replies
LEARN ABOUT DEBIAN
pdl::gslsf::airy
AIRY(3pm) User Contributed Perl Documentation AIRY(3pm)
NAME
PDL::GSLSF::AIRY - PDL interface to GSL Special Functions
DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library.
SYNOPSIS
FUNCTIONS
gsl_sf_airy_Ai
Signature: (double x(); double [o]y(); double [o]e())
Airy Function Ai(x).
gsl_sf_airy_Ai does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input
piddles.
gsl_sf_airy_Bi
Signature: (double x(); double [o]y(); double [o]e())
Airy Function Bi(x).
gsl_sf_airy_Bi does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input
piddles.
gsl_sf_airy_Ai_scaled
Signature: (double x(); double [o]y(); double [o]e())
Scaled Airy Function Ai(x). Ai(x) for x < 0 and exp(+2/3 x^{3/2}) Ai(x) for x > 0.
gsl_sf_airy_Ai_scaled does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_airy_Bi_scaled
Signature: (double x(); double [o]y(); double [o]e())
Scaled Airy Function Bi(x). Bi(x) for x < 0 and exp(+2/3 x^{3/2}) Bi(x) for x > 0.
gsl_sf_airy_Bi_scaled does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_airy_Ai_deriv
Signature: (double x(); double [o]y(); double [o]e())
Derivative Airy Function Ai`(x).
gsl_sf_airy_Ai_deriv does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_airy_Bi_deriv
Signature: (double x(); double [o]y(); double [o]e())
Derivative Airy Function Bi`(x).
gsl_sf_airy_Bi_deriv does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_airy_Ai_deriv_scaled
Signature: (double x(); double [o]y(); double [o]e())
Derivative Scaled Airy Function Ai(x). Ai`(x) for x < 0 and exp(+2/3 x^{3/2}) Ai`(x) for x > 0.
gsl_sf_airy_Ai_deriv_scaled does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any
of the input piddles.
gsl_sf_airy_Bi_deriv_scaled
Signature: (double x(); double [o]y(); double [o]e())
Derivative Scaled Airy Function Bi(x). Bi`(x) for x < 0 and exp(+2/3 x^{3/2}) Bi`(x) for x > 0.
gsl_sf_airy_Bi_deriv_scaled does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any
of the input piddles.
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.14.2 2012-05-30 AIRY(3pm)