10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have been stuck in this requirement where my file contains the below format.
"ABC Report" hp96880
20150812170501846959990854-25383-8.0.0 End of run
"XYZ Report" vg76452
"1006962188"... (6 Replies)
Discussion started by: Chinmaya Kabi
2. Shell Programming and Scripting
Following is my issue.
$MAIL_DOC = test.txt
test.txt contains the following text .
This process was executed in the %INSTANCE% instance on %RUNDATE%.
I am trying to execute the following script
var=`echo $ORACLE_SID | tr `
sed -e... (3 Replies)
Discussion started by: megha2525
3. Shell Programming and Scripting
I have the below data in a file in one of the path,
5200xxxxxxxxxx D18000_1 CCDXXXXXXX JUL 31201207 1140689340000001
622113010547999999999003 000333333334RE ... (1 Reply)
Discussion started by: Ramyajiguru1
4. Shell Programming and Scripting
I need to use a shell script, using sed command how to replace date variable value in following format.
Because the sed is treating the '/' as a parameter instead of the value of a variable, and hence there is the message as
sed: command garbled: s/insert/04/18/2012... (9 Replies)
Discussion started by: jannusuresh
5. Shell Programming and Scripting
hope somebody can help, there seems to be bit on the net about this, but still cant make it work the way i need.
i have a file live this
mm dd ff /dev/name1
mm dd ff /dev/name2
mm dd ff /dev/name3
mm dd ff /dev/name4
i need to update /dev/name1 etc to /newdev/new/name1 etc
so... (5 Replies)
Discussion started by: dshakey
6. UNIX for Dummies Questions & Answers
i need to replace '/' forward slash with \/(backward slash follwed by a forward slash) using sed command when the forward slash occurs as a first character in a file..
Tried something like this but doesn't seem to work.
find $1 -print0 | xargs -0 sed -i -e 's/^\//\\\//g'
Can someone... (19 Replies)
Discussion started by: depakjan
7. Shell Programming and Scripting
I have a website. I have a directory within it with over a hundred .html files. I need to change a date within every file. I don't have an easy way to find/replace.
I need to change 10/31 to 11/30 on every single page at once. I tried the command below but it didn't work. Obviously I don't know... (3 Replies)
Discussion started by: ijustsawmars
8. Shell Programming and Scripting
I'd like to replace "," by "/" in a utf8 file from postion X to Y. Comma "," is also defined as delimiter.
aaaa,aaaa,aaaaa ,bbb,bbbb,bbbbb ,cccccc,cc ,
Result should be... (1 Reply)
Discussion started by: fmofmo
9. Shell Programming and Scripting
I need to know way of inserting backward slash before forward slash. My problem is that i need to supply directory path as an argument while invoking cshell script. This argument is further used in script (i.e. sed is used to insert this path in some file). So i need to place \ in front... (2 Replies)
Discussion started by: sarbjit
10. Shell Programming and Scripting
I am trying to replace paths with \ (as in NT) with / (as in Unix) in a script using sed. Following is the command I use:
sed "s/e:\Kenny_test\csv_files/var/opt/ciw/data/outbound/g" EMEA4710.SQL > test
the string to replace is e:\Kenny_test\csv_files
the target string needs to... (3 Replies)
Discussion started by: Abhidey