09-29-2006
AHA! worked beautifully.
Thank you so much !
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys, I hope you can help me with my problem.
I have a text file that contains lines like this:
78 ANGELO -809.05
79 ANGELO2 -5,000.06
I need to find all occurences of amounts that are negative and replace them with x's
78 ANGELO xxxxxxx
79... (4 Replies)
Discussion started by: amangeles
4 Replies
2. Shell Programming and Scripting
Okay, I have a script right now that is made to search through a file and replace certain strings with a new one. The format to execute is "/subst <replacethis> <withthis> <filename>" and it only updates the file IF changes are made (in order to preserve the time it was made/last modified). I have... (6 Replies)
Discussion started by: jbud
6 Replies
3. Shell Programming and Scripting
I have an xml file with following tags
<NewTag>value123</xyz>
<NewTag>value321</abcd>
I have to replace the values in between the tags with some value ( VAL1/VAL2)
but the thing the ending tag can be any thing, for this i need a awk command
currently i am using this but it... (5 Replies)
Discussion started by: subin_bala
5 Replies
4. Shell Programming and Scripting
Hi
I have a text file which contains the following.
AAA,BBB,CCC,DDD
AAA,BBB,CCC,DDD
AAA,BBB,CCC,DDD
How can I replace all CCC with 888, with other contents inside the file remain unchange? Please advice
Desired output:
AAA,BBB,888,DDD
AAA,BBB,888,DDD
AAA,BBB,888,DDD (1 Reply)
Discussion started by: c0384
1 Replies
5. Shell Programming and Scripting
Hi I am new to shell scripting but i manage to do some simple things.
I am trying to replace a string in one file. I am using sed to replace but it is not permanently writing to the file, rather it is temporary. I want to know whether is there any another method to replace a string in a file... (7 Replies)
Discussion started by: reddybs
7 Replies
6. Shell Programming and Scripting
I have one string
string1=user/password:IP_ADDR:Directory
I need to replace string1 value like store into string2
string2=user password:IP_ADDR:Directory
i.e replace "/" character by '<space>' character
But i wouldn't use any file in the meantime.
Please help me......................... (6 Replies)
Discussion started by: mnmonu
6 Replies
7. Shell Programming and Scripting
Hi All,
I have below file which has data in below format.
#$ | AB_100
| AB_300
()| AB_4
@*(% | AB-789
i want o/p as below format.
| AB_100
| AB_300
| AB_4
| AB-789
So here there is no standard format.
How we can achieve the same in unix ?
Regards, (3 Replies)
Discussion started by: gander_ss
3 Replies
8. Shell Programming and Scripting
Dear Friends,
I want to replace following line with given line.
It should grep/search following string in a file (input.txt)
M/M SRNO: 000M/6200-0362498 COSMETIC PRO MALE FEMALE
Once found it should replace it to following string.
T_DLHNNO: 000M/6200-0362498 ... (7 Replies)
Discussion started by: anushree.a
7 Replies
9. Shell Programming and Scripting
Hi,
I have a text file where all records come in one line (single line file), each record starts with 'BUCH' and ends with '@&' and if data is not there we get space instead. between '@&' and next record there might be some spaces, now I want to remove those spaces between '@&' and 'BUCH'.
... (4 Replies)
Discussion started by: maks475
4 Replies
10. Shell Programming and Scripting
Greetings!
I've been tooling about with Perl to make a few string replacements in some files; and seem to have run into a bit of a squeeze :)
Beginning with a simple text file, test.txt, we have the following content to be worked:Now, not wanting to have anyone feel left out, I decided that... (6 Replies)
Discussion started by: LinQ
6 Replies
AHB(4) BSD Kernel Interfaces Manual AHB(4)
NAME
ahb -- Adaptec EISA SCSI host adapter driver
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device scbus
device ahb
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
ahb_load="YES"
DESCRIPTION
This driver provides access to the SCSI bus connected to an Adaptec AHA-174X host adapters in ``enhanced'' mode. Tagged queueing and syn-
chronous SCSI transfers are supported.
HARDWARE
The ahb driver supports the following SCSI host adapters:
o Adaptec AHA-1740
o Adaptec AHA-1742
o Adaptec AHA-1740A
o Adaptec AHA-1742A
CAVEATS
The Adaptec 174X is very sensitive to SCSI bus termination and cable length. It may also have difficulties operating with some modern
devices that, due to their speed, expose timing problems in the controller. There are no known mechanisms for working around device incom-
patibilities of this nature.
SEE ALSO
aha(4), ahc(4), aic(4), cd(4), da(4), sa(4), scsi(4)
AUTHORS
The ahb driver was written by Justin T. Gibbs.
BSD
July 4, 2004 BSD