10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to replace outliers from time series, an example below (outlier at x-position 386). The problem is that I do not want to smooth this line, I would like to replace the outlier with, for instance, an average value from the two consecutive values (i.e., average value from positions 385 and... (2 Replies)
Discussion started by: Gery
2. Shell Programming and Scripting
Let's say I have a script calling for the two variables PA_VALUE and PB_VALUE.
for pa in PA_VALUE
for pb in PB_VALUE
I have a text file with two columns of values for PA and PB.
I would like to read this... (7 Replies)
Discussion started by: crimsonengineer
3. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
4. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG Part: "@DB/TC10000021855/--F"
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5. Shell Programming and Scripting
my requirement is,
consider a file output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
this doesnt look good
et cetc etc
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
6. Shell Programming and Scripting
I have been trying to replace the key word
"SQL> spool off "
with out double quotes in all the files in a directory.
above show erros should be displayed next line
Could you please help me how to do that.
I have tried something like this... (3 Replies)
Discussion started by: pointers
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
8. Shell Programming and Scripting
Hi, I am working on transforming html code text into the .vert text format. I want to use linux utility sed. I have this regexp which should do the work: s/ \(?!*>\)/\n/g. I use it like this with sed: echo "you <we try> there" | sed 's/ \(?!*>\)/\n/g' ... The demanded output should be:
<we... (5 Replies)
Discussion started by: matt1311
I apoligize for the cross-post but I'm not getting much in the way of help in the dummies forum:
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command... (3 Replies)
Discussion started by: G-Man
10. UNIX for Dummies Questions & Answers
I am having to do a lot of searching thru files to replace words. Is there a command that i can run that will alow me to hunt thru a group of files and replace one word with another without having to open each file idividually?
-thanks;) (1 Reply)
Discussion started by: dudboy