10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am working on a Raspberry Pi and using sed to update the SSID and password but the config file requires the SSID and PSK to both be in double quotes. Below is the code I am using but I cannot figure out how to include the double quotes.
script:
#!/bin/bash
read -p "Please specify the... (2 Replies)
Discussion started by: NickCostas
2 Replies
2. Shell Programming and Scripting
I have a file and I want to remove quotes from the word " ` " through sed command but unable to remove
I am using below command
sed s/"`XYZ`"/"ZXY"/g file1.txt > file2.txt
But this is not working. How can we remove "`" through sed command (2 Replies)
Discussion started by: kaushik02018
2 Replies
3. Shell Programming and Scripting
Hi,
I have the following text in a file
<div class="snippet abstract">
We present a new "model" for multiple-input-multiple-output (MIMO) 'outdoor'
has many things "what" ever
</div></a href=sdfkkf">
</div>
<div class="snippet context">
I have to replace the string between the <div... (1 Reply)
Discussion started by: vms
1 Replies
4. Shell Programming and Scripting
My need is :
Want to change
docBase="/something/something/something"
to
docBase="/only/this/path/for/all/files"
I have some (about 250 files)xml files.
In FileOne it contains
<Context path="/PPP" displayName="PPP" docBase="/home/me/documents" reloadable="true" crossContext="true">... (1 Reply)
Discussion started by: linuxadmin
1 Replies
5. Shell Programming and Scripting
Hello,
I need to read a csv file and I am trying to replace a comma with a text DSEE?DSEE.
Example
Input
"Chapter","NewTrains, "oldTrains","Delayed",10,"London"
"Chapter","Newbuses,oldbuses","On Time",20,"London"
Output
"Chapter","NewTrainsDSEE?DSEE... (5 Replies)
Discussion started by: venkatvani
5 Replies
6. UNIX for Dummies Questions & Answers
Hello, I have an array as an output that looks similar to this:
Is it possible to remove all of the single quotes from the integers and leave them on the operators so that the output would be:
Any help would be appreciated. (12 Replies)
Discussion started by: jl487
12 Replies
7. Shell Programming and Scripting
Hi gurus
input file:
1
2
3
4
desired output
1
2\
2a
3
4
I tried (6 Replies)
Discussion started by: wakatana
6 Replies
8. Shell Programming and Scripting
I have not seen anything yet in your forum to answer this problem.
Here is my sed command.
I want to change
Build Apache module" off
to
Build Apache module" on
This is what I am trying.
sed "s_Build Apache module\" off_Build Apache module\" on_" /usr/ports/lang/php5/Makefile... (9 Replies)
Discussion started by: triumdh
9 Replies
9. Shell Programming and Scripting
I have the following line of code:
sed -i "/MatchText/ s/${tgrepLine}/${tNewLine}/" filename.outputfilename.output contains this:
blablabla
PATH=".:/home/root/bin/:/usr/local/bin/"
blablablaVariable ${tgrepLine} contains:
PATH=".:/home/root/bin/:/usr/local/bin/"
Variable ${tNewLine}... (3 Replies)
Discussion started by: inspire87
3 Replies
10. UNIX for Dummies Questions & Answers
I'm using sed to perform a simply search and replace. The typical data is:
<fig><image href="Graphics/BAV.gif" align="left" placement="break"
I need to replace the value in the first set of quotes, keeping the remainder of the line the same. Thus:
<fig><image href="NEW_VALUE" align="left"... (3 Replies)
Discussion started by: Steve_altius
3 Replies