10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good day guys,
I'm having trouble in creating a logic when it comes to replacing the values inside a file.
I tried using sed command but it just doesn't work the way I want it to be.
Here is what I'm trying to achieve.
If my input file contains the values below.
NAME++GUEST1 ++GUESS2++... (3 Replies)
Discussion started by: asdfghjkl
2. Shell Programming and Scripting
i have little challenge, help me out.i have a file where i have a value declared and and i have to replace the value when called. for example i have the value for abc and ccc. now i have to substitute the value of
value abc and ccc in the place of them.
go to &abc=ddd;
if... (16 Replies)
Discussion started by: saaisiva
3. Shell Programming and Scripting
I'd like to modify custom values in a XML config file between comment tags using bash script.
<!-- bash script features START -->
... (2 Replies)
Discussion started by: prism1
4. Shell Programming and Scripting
I am having flat file (Comma Delimiter) and the data in the file is as given below.
EMPNO, ENAME, DESIGNATION, SALARY
10979, Arun Kumar, Cosultant, 35000
13555, Bidhu Shekar, Senior Consultant, 45000
15000, Kiran, Kumar, Senior, Consultant, 40000
If... (9 Replies)
Discussion started by: arunvasu2
5. Shell Programming and Scripting
I am coming to seek your knowledge and some help on an issue I can not currently get over. I have been searching the boards but did not find anything close to this matter I am struggling with.
I am trying to clean a CSV file and make it loadable for my SQL*Loader. My problem... (1 Reply)
Discussion started by: OCanada
6. Shell Programming and Scripting
I am poor with scripting;)
I have a file in the following format;
'This is a "test in production" of importance.'
I want to get rid of the spaces inside the "" part only to get the output as,
'This is a "testinproduction" of importance.' (1 Reply)
Discussion started by: shmathew
7. Shell Programming and Scripting
The following sed command is giving error
sed: -e expression #1, char 13: unknown option to `s'
The sed command is
echo "//-----" | sed "s/\/\/---*/$parChk/g"
How can i print the variable value from sed command ?
And is it possible to replace a... (2 Replies)
Discussion started by: frozensmilz
8. Shell Programming and Scripting
I am needing some help writing a shell script to replace the following in a text file
with some other path eg
I know that i can do it using sed or perl but just having difficulty writing the escape characters for it
All Help... (3 Replies)
Discussion started by: cgilchrist
9. Shell Programming and Scripting
I need help for the below logic.
I ve a file like following
NopTX(5) // should be remain same as input
--Nop@( 40); ... (3 Replies)
Discussion started by: user_prady
10. UNIX for Advanced & Expert Users
This is my first post to this group.I am new to Unix.I have one requirement
I need to replace a text in all the files in a directory and sub-directory.Eg i have a folder structure like /usr/local/abc , inside abc i have several directories and several files. All the files inside abc and all the... (1 Reply)
Discussion started by: vatsan