04-22-2010
Thanks i'm glad you were able to get the sed command to work correctly without actually using it as a function.
I still think that my loop method seems like it should work but its not. I just need to figure out why its only taking the first argument and using it as a variable. If it would just take all 3 like I WANT IT TOO! then it would work fine and it would work for any number of works I used anytime.
The script that pseudocoder wrote i'm sure will work. Problem is that the way our systems work I'm not working on my own box. I'm working on customers boxes so I don't like having to put anything on the customers box. So almost everything I do has to be something which can be pasted into a command line. Having to FTP a file to a customers box is a no no unless its an unusual situation.
So I can't really use the script except on my own boxes at my desk.
10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hello,
I have this file.
aaa
port=1234
time
bbb
port=2233
name
ccc
port=4444
name
Is there any way with sed to change only the occurence of "port" which comes after section to have as output : (12 Replies)
Discussion started by: rany1
12 Replies
3. Shell Programming and Scripting
My source is on each line
98.194.245.255 - - "GET /disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&drc=&mo=&sid=&lang=EN&loc=JPN HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR... (5 Replies)
Discussion started by: elamurugu
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Discussion started by: tmalik79
11 Replies
5. Shell Programming and Scripting
I have http log that I want to get words after specific "tag", this a sample line from the log:
98,POST,200 OK,www.facebook.com,Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,/ajax/updatestatus.php?__a=1,datr=P_H1TgjTczCHxiGwdIF5tvpC; lu=Si1fMkcrU2SInpY8tk_7tAnw;... (6 Replies)
Discussion started by: erlanq
6 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I am using RHEL 6.1 on VMware
I am searching for a way to change background color (not line by line color wich one can using tput command)
basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies
7. Shell Programming and Scripting
Hey folks. I wrote a little awk script that summarizes /proc/net/dev info and then pipes it to the nix column command to set up column spacing appropriately.
Here's some example output:
Iface RxMBytes RxPackets RxErrs RxDrop TxMBytes TxPackets TxErrs TxDrop
bond0 9 83830... (3 Replies)
Discussion started by: ryran
3 Replies
8. Shell Programming and Scripting
I'm try to change a the prohibit to aix for the lines starting with ssh and emagent and rest should be the same. Can anyone please suggest me how to do that using a shell script or sed
passwd account required /usr/lib/security/pam_prohibit
passwd session required ... (13 Replies)
Discussion started by: pjeedu2247
13 Replies
9. Shell Programming and Scripting
Hi,
I am writing a shell script where I want that # should be added in all those lines as the first character where the pattern matches.
file has lot of functions defined
a.sh
#!/bin/bash
fn a {
beautiful evening
sunny day
}
fn b {
}
fn c {
hello world .its a beautiful day
... (12 Replies)
Discussion started by: ashima jain
12 Replies
10. Shell Programming and Scripting
Hello I have a script that searches a file for a specific string and then changes the nth column after that string. I have searched online for how to do this with sed but have not seemed to find a solution that works for me. I am using bash.
Some background info:
- Currently I am using awk to... (4 Replies)
Discussion started by: prodigious8
4 Replies
LEARN ABOUT OPENSOLARIS
genlib_def_ab
GENLIB_DEF_AB.3(October 1, 1997) GENLIB_DEF_AB.3(October 1, 1997)
NAME
GENLIB_DEF_AB - define a new abutment box to the current layout cell
SYNOPSYS
#include <genlib.h>
void GENLIB_DEF_AB(dx1, dy1, dx2, dy2);
long dx1, dy1, dx2, dy2;
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
PARAMETERS
dx1, dy1 Values to be added to the lower left corner of the previous abutment box
dx2, dy2 Values to be added to the upper right corner of the previous abutment box
DESCRIPTION
DEF_AB give a new abutment box to the current physical cell. The coordinates of the abutment box are the coordinates of the envelop of the
abutment boxes of each instance plus the delta values given as argument. The (dx1, dy1) values are added to the (x1, y1) coordinates of the
bottom left corner of the "standard abutment box" (the envelop), and the (dx2, dy2) are added to the top right ones. You have to call this
function before saving, otherwise the figure will not have an abutment box. Since it's regarding the abutment box of its model that an
instance is placed, any futher use of this figure will be incorrect if DEF_AB isn't called, or properly defined.
ERRORS
"GENLIB_DEF_AB impossible : missing GENLIB_DEF_PHFIG"
No figure has been yet specified by a call to DEF_PHFIG. So it isn't possible to give it a size. you must call DEF_PHFIG before any
other layout action.
EXAMPLE
#include <genlib.h>
main()
{
/* Create a figure to work on */
GENLIB_DEF_PHFIG("cell");
/* Place an instance */
GENLIB_PLACE("model","i1", NOSYM,0L,0L);
GENLIB_PLACE("model","i2", NOSYM,120L,40L);
GENLIB_DEF_PHINS("i1");
GENLIB_PLACE_TOP("model2", "i3", NOSYM);
/* define the new abutment box as the standard envelop */
GENLIB_DEF_AB(0, 0, 0, 0);
/* Save all that on disk */
GENLIB_SAVE_PHFIG();
}
SEE ALSO
genlib(1), GENLIB_SAVE_PHFIG(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
PROCEDURAL GENERATION LANGUAGE
ASIM/LIP6 GENLIB_DEF_AB.3(October 1, 1997)