10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I am trying read all the files from list into a variable line using bash. After there are read into the variable they are passed to a delete call. The files appear to be read line (as I can see them with the echo) by line into the variable, but the delete call is not removing them and I do not... (1 Reply)

Discussion started by: cmccabe

1 Replies

2. Shell Programming and Scripting

Hello Experts,
This script to delete a file is submitted from an SAP system which has 2 servers. When it happens to run on server 1, the delete is successful. When it runs on server 2, the delete always fails. All user accounts and permissions have been adjusted to match on both servers. Is it... (5 Replies)

Discussion started by: SAPDEVEL

5 Replies

3. Shell Programming and Scripting

working on interactive ftp script
saving log and want to remove the password from log
so "quote PASS foofoo" would become "quote PASS XXXXXXX"
replacing or removing the password is of no matter
have tried several sed commands but have only been successful with character matching not pattern
... (2 Replies)

Discussion started by: ppaprota

2 Replies

4. Shell Programming and Scripting

Hi,
I have a file a.xml containing the below
<customerId>000</customerId>
and a variable CUSTOMER_ID which is set to '333'
Now I want to replace <customerId>000</customerId> with <customerId>333</customerId> by the below sed command and save the output in a file b.xml:
sed... (3 Replies)

Discussion started by: RomitaaChawla@1

3 Replies

5. Shell Programming and Scripting

My script(ksh) works fine for
---------------------------------------------------
sed -n '28,31p' ${l_name} >> ${LOG_DIR}/Email.txt
---------------------------------------------------
But I wand to pass parrmeter to this syntax
I did the following things ... (14 Replies)

Discussion started by: patilrakesh1984

8. Shell Programming and Scripting

Hello,
I'd like to pass a variable to a sed command in a perl script. The script is like this :
#!/usr/bin/perl -w
$newline="new";
system q(sed '/insert/ i\ '$newline <sed1.txt >sed2.txt);
But the interpretor wouldn't recognize $newline, it inserts a "\n" instead.
I've also... (4 Replies)