Hi,
I have a file named "Test_2008_01_21"
The file contains a string "manual" that occurs many times in the file
How can i find the positions of the string "manual" in the file
Ex: if the string " manual " occurs three times in the file. i want to replace the second occurance of string... (6 Replies)
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found..The issue is the last... (15 Replies)
Hi
I am looking for a particular string in a file.If the string exists, then I want to replace another string with some other text.Once replaced, search for the same text after that character position in the file. :wall:
E.g: Actual File content:
Hello
Name: Nitin Raj
Welcome to Unix... (4 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed
Bold letters are the stations . The whole file has multiple stations .
Below example i wanted to search... (4 Replies)
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 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)