06-20-2007
I am still getting error message as -
'There are extra characters at the end of substitute command'.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey, I want to have a C program which, for an existing file supplied by the command line argument (E.g. File1.txt) replaces all the occurrences of the words:
"We” or “we” by “I”
“a” by “the”
“A” by “The”.
Then print the replaced file. All other characters of the file are to be left... (1 Reply)
Discussion started by: IwishIknewC
1 Replies
2. Shell Programming and Scripting
Hello all
i have big test file that has allot of structure text something like this :
<foo1 *.html>
<blah action>
somthing 1
somthing 2
</blah>
</foo1 >
now i will like to insert 2 more lines of text below the <blah action>
so it will be like :
<foo1... (1 Reply)
Discussion started by: umen
1 Replies
3. Shell Programming and Scripting
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
I ahve a text file which has several instances of the text such as
run_time: 09:30
I need to add double quotes before and after the time value
i.e: run_time: "09:30"
Any suggestions on how to go about the same (4 Replies)
Discussion started by: jobbyjoseph
4 Replies
5. Shell Programming and Scripting
Hi All,
How do I search first string & second string and copy all content between them from one file to another file?
Please help me..
Thanks In Advance.
Regards,
Pankaj (12 Replies)
Discussion started by: pankajp
12 Replies
6. Shell Programming and Scripting
Hello: I have another question. Please consider the following two sample, tab-delimited files:
File_1:
Abf1 YKL112w
Abf1 YAL054c
Abf1 YGL234w
Ace2 YKL150w
Ace2 YNL328c
Cup9 YDR441c
Cup9 YDR442w
Cup9 YEL040w
...
File 2:
...
ABF1 YKL112W
ACE2 YLR131C (9 Replies)
Discussion started by: gstuart
9 Replies
7. Shell Programming and Scripting
Hello,
I really would appreciate some help with a bash script for some string manipulation on an SQL dump:
I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump.
This is quite easy with sed:
sed -e... (1 Reply)
Discussion started by: otrotipo
1 Replies
8. Shell Programming and Scripting
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies
9. Shell Programming and Scripting
Hi all.
I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value.
cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile
This does in fact replace any occurrence of aaa, bbb,... (2 Replies)
Discussion started by: dazhoop
2 Replies
10. Shell Programming and Scripting
Hi Gurus,
I have two files. I want to read sessoin_name from the file1 and replace $Param4 & $Param5 in file2 with connection_name in specified in file1.
The file1 will have data in following format
File 1
session_name,connection_name
s_abcd,Listener_2
s_def,Listener_1
source file... (7 Replies)
Discussion started by: r_t_1601
7 Replies
LEARN ABOUT HPUX
list_clearinghouse
list clearinghouse(1m) list clearinghouse(1m)
NAME
list clearinghouse - Displays a list of all the clearinghouses whose names match the specified clearinghouse name
SYNOPSIS
cdscp list clearinghouse clearinghouse-name [with attribute-name = attribute-value]
ARGUMENTS
The full name of a specific clearinghouse. The last simple name can contain wildcard characters. The name of a particular attribute. The
value of a particular attribute.
DESCRIPTION
The list clearinghouse command displays a list of all the clearinghouses whose names match the specified name. The last simple name can
contain wildcards. You can use a with attribute-name = attribute-value clause to limit output only to clearinghouses whose attributes have
values equal to the specified values. A space must precede and follow the = (equals sign).
Privilege Required
You must have read permission to the directory that stores the associated clearinghouse object entry. If you use a with attribute-name =
attribute-value clause in the command, you also need read or test permission to the selected clearinghouses.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command displays a list of all the clearinghouses named in the root directory: cdscp> list clearinghouse /.:/*
LIST
CLEARINGHOUSE /.../abc.com/*
AT 1991-10-15-15:56:00 /.../abc.com/Munich_CH /.../abc.com/Paris_CH
RELATED INFORMATION
Commands: clear clearinghouse(1m), create clearinghouse(1m), delete clearinghouse(1m), set cdscp preferred clearinghouse(1m), show cdscp
preferred clearinghouse(1m), show clearinghouse(1m)
list clearinghouse(1m)