I've tried some suggestions with the real case I have, but I haven't had any success. Perhaps if I show you what I am working with it will make more sense. The following is a CSV file that I am working on:
What I am trying to make it look at is the following:
The bold parts are the items that are actually changing. So in this case, the report I run will always start with "eDir" and end with "70.0" (The second occurrence for those eagle eyed). I want that replaced with what is in the second example. Any chance on getting that to work? Thank you again for all your help, I do appreciate it.
Howdy!
I'm trying to automate editing of a configuration file (custom.conf for GDM). I need to find every line between a line that starts with "" and the next line that starts with "", I want to preserve that line, but then delete all the lines in that configuration section and then insert... (3 Replies)
Hi,
I have a situation where I want to replace some occurrences of ".jsp" into ".html" inside a text file.
For Example:
If a pattern found like <a href="http://www.mysite.com/mypage.jsp"> it should be retained.
But if a pattern found like <a href="../mypage.jsp"> it should be changed to... (4 Replies)
Hello,
file1:
not to be changed
not to be changed
<start>
old stuff
old stuff
old stuff
<end>
not to be changed
not to be changed
file2:
new text
new text
desired output: (3 Replies)
can anyone please help me in the below scenario:
File1:
Hello1
Hello1
i want to use sed to replace multiple occurances of Hello1 in file 1 to welcome.
Thanks a ton for the help (9 Replies)
Hello, guys!
"filename" has blocks with three lines each in this fashion:
93909286
#verified
has one bug
10909286
#unverified
pending
10909286
#unverified
pendingThe above example has duplicate blocks, and I have tried using sed to remove just one block... The... (2 Replies)
Hi,
I would like to use sed to replace NA to x ('s/NA/x/g'), but only in the 5th column of the space delimited text file, nowhere else. How do I go about doing that? Thanks! (1 Reply)
Hi,
I want to use sed to replace " /// " with "///" in a text file. However I am getting error messages when I use sed 's/ /// /////g' input.txt > output.txt. How do I go about doing this in sed?
Input:
219518_s_at 0.000189 ELL3 / SERINC4
Output:
219518_s_at 0.000189 ELL3/SERINC4 (5 Replies)
I have a sample text format as given below
<Text Text_ID="10155645315851111_10155645333076543" From="460350337461111" Created="2011-03-16T17:05:37+0000" use_count="123">This is the first text</Text>
<Text Text_ID="10155645315851111_10155645317023456" From="1626711840902323"... (3 Replies)
Good Day Every one
I have a problem finding and replacing text in some large files that will take a long time to manually edit.
Example text file looks like this
#Example Large Text File
unix
linux
dos
squid
bind
dance
bike
car
plane
What im trying to do is to edit all the... (4 Replies)
Hello Everyone,
I have many files like so:
file1.txt
file2.txt
file3.txt
Within each file I have many lines of random text separated by commas like so:
abcAAA,123,defAA,456777,ghiA,789
jklB,101,mnoBBB,11211,pqrB,13111
stuCC,415,vwxCCCC,161,yzaC,718
I am trying to use SED or AWK to... (4 Replies)
Discussion started by: D3U5X
4 Replies
LEARN ABOUT DEBIAN
dahdi_diag
dahdi_diag(8) System Manager's Manual dahdi_diag(8)NAME
dahdi_diag -- Dump DAHDI channel parameters
SYNOPSIS
dahdi_diag channel
DESCRIPTION
dahdi_diag asks the kernel to dump parameters for DAHDI channel no. channel to the kernel logs. You will be able to see them using, e.g.
dmesg(1).
OPTIONS
channel
The number of the DAHDI channel whose parammeters should be dumped. May be any DAHDI channel (even if it is open).
EXAMPLE
# /tmp/dahdi_diag 5
# dmesg | tail -n 15
Dump of DAHDI Channel 5 (XPP_BRI_TE/00/01/1,5,2):
flags: 501 hex, writechunk: c5190948, readchunk: c5190954
rxgain: ccad2e80, txgain: ccad2e80, gainalloc: 0
span: c48a900c, sig: 80 hex, sigcap: 80 hex
inreadbuf: -1, outreadbuf: 0, inwritebuf: 0, outwritebuf: -1
blocksize: 160, numbufs: 4, txbufpolicy: 0, txbufpolicy: 0
txdisable: 0, rxdisable: 0, iomask: 0
curzone: c78e7000, tonezone: 0, curtone: 00000000, tonep: 0
digitmode: 0, txdialbuf: , dialing: 0, aftdialtimer: 0, cadpos. 0
confna: 0, confn: 0, confmode: 0, confmute: 0
ec: 00000000, echocancel: 0, deflaw: 0, xlaw: ccab5e80
echostate: 00, echotimer: 0, echolastupdate: 0
itimer: 0, otimer: 0, ringdebtimer: 0
SEE ALSO dahdi_cfg(8), asterisk(8), dmesg(1).
AUTHOR
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> Permission is granted to copy, distribute and/or modify this docu-
ment under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
2008-01-07 dahdi_diag(8)