02-25-2008
Nope same error
sed: -e expression #1, char 14: Unknown option to `s'
sed -i "s/FILENAME/$i/g" TEST/test$j.ctl > TEST/control$j.ctl
sed -i "s/FILENAME/'$i'/g" TEST/test$j.ctl > TEST/control$j.ctl
Tried both but same error
using #!/bin/ksh shell
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Provides a menu structure that allows a user to select several options - input a name and address,
lookup a name and address, delete a name and address, and print a formatted report from a text
database (note: this requirement assumes that you will use the program to create a database, though in... (1 Reply)
Discussion started by: DonOmar
1 Replies
2. Shell Programming and Scripting
Execution of the following segment is giving the error -
Script extract:-
OUT=$DATADIR/sol_rsult_orphn.bcp
TMP1=${OUT}_tmp1
TMP=${OUT}_tmp
( isql -w 400 $dbConnect_OPR <<EOF
select convert(char(10), s.lead_id)
+'|'
+ s.pho_loc_type,
";",
s.sol_rsult_cmnt,
";",
+'|'+ s.del_ind... (3 Replies)
Discussion started by: kzmatam
3 Replies
3. Shell Programming and Scripting
Hi all,
can anyone have sed & awk programming doc..so that to learn it easier.. (1 Reply)
Discussion started by: gk2009
1 Replies
4. Shell Programming and Scripting
Hi Folks,
I have one file which contains the data like below.
gggsdvrwdtydjnnc%vhdskl;jf;whjfuyijfnv,m%jkgsjkfsjkjdlkl%gjksdhfljkfjkj%
I want to replace % to the Line feed. I mean the result should be like below.
gggsdvrwdtydjnnc
vhdskl;jf;whjfuyijfnv,m
jkgsjkfsjkjdlkl... (12 Replies)
Discussion started by: pradeesh
12 Replies
5. Shell Programming and Scripting
I need a UNIX shellscript command that will remove the 'Paragraph' mark from a simple text file. The Paragraph mark I'm referring to is the special character you can see in a WORD documant (similar to a backwards 'P') when you select the Show Paragraph Marks icon.
If someone can give me the... (6 Replies)
Discussion started by: varefump
6 Replies
6. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
7. Shell Programming and Scripting
Hi All,
can any one help me on this please.
Replace sting in FILE1.txt with FILE2.txt. FILE1.txt record must have at least one state is repeated once.But need to replace only from second occurrence in record in FILE1.txt
Condition: order of searching the records in FILE2.txt is impartent.... (8 Replies)
Discussion started by: ureddy
8 Replies
8. Shell Programming and Scripting
Hi,
I am using two files - one file contains list of service name , other file contains commands for each of these service name .
I have to read each service name and check this string in 1.cfg file , if it exists , then i have to read another file (commands file ) and take the string and... (2 Replies)
Discussion started by: santhoshks
2 Replies
9. UNIX for Advanced & Expert Users
I hope my title is accurate enough.
I have a product that we port to various UNIX platforms. It is known to run on AIX but using the IBM compiler from years ago. Recently we got a different used AIX P5 platform running AIX 5.3 and we setup the GCC compiler (4.4.5 I think). C and C++ source code.... (5 Replies)
Discussion started by: Pug
5 Replies
10. Shell Programming and Scripting
Dears,
I want to print filename and count of each file in perl but failing to implement.
`find $srcFolder -maxdepth 1 -type f -name "*$workDate*$fileExt" -exec sh -c ' && printf "$workDate|%s|%s\n" "$(wc -l<"$0")" *$workDate*$fileExt' {} \ >> /Sadique/filelog.out \\; 2> /dev/null`;
... (2 Replies)
Discussion started by: sadique.manzar
2 Replies
LEARN ABOUT DEBIAN
rpld-prev
rpld-*(1) System User's Manual: rpld-deprecated rpld-*(1)
NAME
rpld-deprecated - Deprecated RoarAudio PlayList Daemon control programs
SYNOPSIS
rpld-play
rpld-stop
rpld-next [--ifcurple PLE]
rpld-prev
rpld-addplaylist PLI
rpld-delplaylist PLI
rpld-store
DESCRIPTION
The RoarAudio PlayList Daemon is a daemon which manages playlists and can play files or streams from those lists using a RoarAudio Sound
Server.
This is a set of deprecated tools to do simple control of the server. All those tools has be replaced by rpld-ctl(1).
The following tools are deprecated:
rpld-play
Start playback if not yet started.
Replaced by: rpld-ctl play
rpld-stop
Stop playback.
Replaced by: rpld-ctl stop
rpld-next [--ifcurple PLE]
Skip current song.
if --ifcurple and a PLE is given the song is only skiped if the currently played song matches the given PLE.
This tool has only been deprecated in case --ifcurple is not used. Replaced by: rpld-ctl next
rpld-prev
Go back to previous song.
Replaced by: rpld-ctl prev
rpld-addplaylist PLI
Add playlist with name PLI.
Replaced by: rpld-ctl addplaylist PLI
rpld-delplaylist PLI
Delete playlist PLI.
Replaced by: rpld-ctl delplaylist PLI
rpld-store
Store current state to disk.
This tool should not be needed to be called by a user at all for normal use cases.
Replaced by: rpld-ctl store
SEE ALSO
rpld-tools(1), rpld(7), RoarAudio(7).
HISTORY
For history information see RoarAudio(7).
rpld-deprecated May 2012 rpld-*(1)