10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anyone help me in question below?
I want to cron a job to add partition every month but get the error sed: command garbled: s/YYYYMM/ .
> echo $YYYYMON_NEW
> echo $YYYYMON_OLD
> echo $YYYY_MM_NEW
This is my base script:
ALTER TABLE STS.ADMIN ADD... (1 Reply)
Discussion started by: fenocean
2. Shell Programming and Scripting
First post for a noob so please go easy with me :)
I have a XML block that is originally like this:
and I would like it be replaced with, in the original file:
I tried to use:
sed... (4 Replies)
Discussion started by: zhuanyi
3. Shell Programming and Scripting
Suppose that I want to update the db.password entry in the below properties file,
db.password=qhKkBno2U5GEq5k/dnmGPA== //I want this line to be replaced by: "db.password=abc/123/"
However when... (2 Replies)
Discussion started by: isaacniu
4. Shell Programming and Scripting
sed: command garbled: s/ri="*"/ri="
what i did is you can see below
sed "s/ri=\"*\"/ri=\"$newri\"/" $2 > output
how to solve this (2 Replies)
Discussion started by: pasricha.kunal
5. Shell Programming and Scripting
I am trying to embed variable in sed command to fetch a portion of record between two pattern.
This command is not working ...any suggestion on this how to place the variable in sed command to find a portion .
I am using Sun OS (Solaris).
JM (1 Reply)
Discussion started by: jambesh
6. Shell Programming and Scripting
I wanted to pass a variable to the sed command which tells which line to be deleted.
sed '$ad' c.out
it is throwing an error.
sed: 0602-403 "$a"d is not a recognized function.
I even tried "$a" and \$a.. but it is of no use.
Can you please correct me... (6 Replies)
Discussion started by: mac4rfree
7. Shell Programming and Scripting
I have a file1 as :
and my script as:
a=`cat /home/aacsms7/file1 | grep -i e`
sed 's/'$a'/"E=/home/'$b'/temp"/g' < file1 > file2
sed: command garbled:... (3 Replies)
Discussion started by: yesmani
8. Shell Programming and Scripting
I really need some help, I am using a very basic script to proess a text file. This script has been used many times but all of a sudden all on it's own it's stopped working.
The line in the script is:
//g' $ORGFILE > $NEWFILE
and the error is Sed: command garbled :s/
All... (3 Replies)
Discussion started by: heidi.lightfoot
9. Shell Programming and Scripting
name="cat /etc/passwd | grep "$line": | cut -f6 -d':'"
eval $name > sam.txt 2>&1
sudo -u $line sed -n 's/data-1/&/p' $name/test.xml >> sam1.txt
Here i getting the homedir of the accounts and is set in
name variable.which returns "/home/raju" which i... (3 Replies)
Discussion started by: sachin.tendulka
10. Shell Programming and Scripting
Im getting this error message when trying to substitute filepaths in a sed search and replace string
sed -e s/DBNAME/$ORACLE_SID/g < initPH2.ora | sed -e... (1 Reply)
Discussion started by: blakmk