Sponsored Content
Full Discussion: SED and replacing Txt Bullet
Top Forums Shell Programming and Scripting SED and replacing Txt Bullet Post 302336248 by NDxiak on Tuesday 21st of July 2009 04:06:40 PM
Old 07-21-2009
Code:
xlm22-:Desk admin$ sed 's/\xA5/X/' data1.txt
???????
w?  123456 123456
w?  123456 123456
w?  123456 123456
w?  123456 123456

Thank You, But somehow its not working ...
Its just printing question marks

Last edited by NDxiak; 07-21-2009 at 06:55 PM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed to read x.txt and grep from y.txt

How would I write a command(s) to read from a file (list) that looks like this: 29847374384 and grep from a second file (list) that looks like this: 29847374384, jkdfkjdf,3833,ddd:confused: (1 Reply)
Discussion started by: smellylizzard
1 Replies

2. AIX

Bullet proof of user history activity

Hi, is there a bullet proof of getting the history of all commands entered by a user on a specific server and idealy with the times ? We have several servers. Therefore we can simply logon to one and do RLOGINS to go to others. We always first logon to servers with our personnal login and then... (4 Replies)
Discussion started by: Browser_ice
4 Replies

3. Shell Programming and Scripting

sed to cp lines x->y from 1.txt into lines a->b in file2.txt

I have one base file, and multiple target files-- each have uniform line structure so no need to use grep to find things-- can just define sections by line number. My question is quite simple-- can I use sed to copy a defined block of lines (say lines 5-10) from filename1.txt to overwrite an... (3 Replies)
Discussion started by: czar21
3 Replies

4. UNIX for Dummies Questions & Answers

replacing a string with another string in a txt file

Dear all, I have a file like below. I want to replace all the '.' in the 3rd column with 'NA'. I don't know how to do that. Anyone has an iead? Thanks a lot! 8 70003200 21.6206 9 70005700 17.5064 10 70002200 . 11 70005100 19.1001 17 70008000 16.1970 32 70012400 26.3465 33... (9 Replies)
Discussion started by: forevertl
9 Replies

5. Shell Programming and Scripting

sed inside sed for replacing string

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

6. Shell Programming and Scripting

sed -Replacing file path within .txt file

Hi, I am trying to use sed to replace a file path within all the .lay (.txt) files in a folder. I feel that this should be easy but I can't get it to work no matter what i try. I'm using cygwin. For a .txt file containing the below line I want to replace this file path with a new one. ... (1 Reply)
Discussion started by: carlr
1 Replies

7. Shell Programming and Scripting

Replacing .dat.gz to .txt.gz in filename

Hi, I tried below method; mv -v /oracle1/scr/tilki/willsendtilkiNew/VOICE-MO_$nfname.gz \ $(echo /oracle1/scr/tilki/willsendtilkiNew/VOICE-MO_$nfname.gz | tr 'dat' 'txt'); nfame variable has the string "dat" . I need to rename files like below; ASIS: 20140902103700_100319.dat.gz... (8 Replies)
Discussion started by: snr_silencer
8 Replies

8. Shell Programming and Scripting

Awk, sed, shell all words in INPUT.txt find in column1 of TABLE.txt and replce with column2 in

Hi dears i have text file like this: INPUT.txt 001_1_173 j nuh ]az 001_1_174 j ]esma. nuh ]/.xori . . . and have another text like this TABLE.txt j j nuh word1... (6 Replies)
Discussion started by: alii
6 Replies

9. Shell Programming and Scripting

Linux Commands needed for replacing variable number of spaces with a single , in a txt file

Hi I want to read a text file and replace various number of spaces between each string in to a single "," or any other character .Please let me know the command to do so. My input file is a txt file which is the output of a SQL table extract so it contains so many spaces between each column of the... (2 Replies)
Discussion started by: Hari Prasanth
2 Replies
ISDNCONF(1)						      Linux System Utilities						       ISDNCONF(1)

NAME
isdnconf - manipulate or read ISDN phone number config files. SYNOPSIS
isdnconf DESCRIPTION
isdnconf can manipulate or read the file /etc/isdn/callerid.conf as well as ~/.isdn. Entries can be added or removed from these files. Additionally, entries can be searched for and displayed in a way similar to grep. An entry can be an own MSN ([MSN]) or a phone number ([NUMBER]). You can use this program to build your own phonebook. These files are used by many of the other ISDN utilities that use phone numbers, to display a number symbolicly instead of as a plain number. OPTIONS
Note: usage of the options -A and -D is dangerous! The complete structure of the file may be changed, and all comments are removed! Make backups of your data files before trying these. COMMAND OPTIONS: -A Add a new entry, which is read from standard input. The following values are asked for (here with examples): Alias: Fred Number: 0815/441777 SI: 0 Zone: 4 Interface: - Flags: I|O Program: /usr/local/bin/ring User: uucp Group: user Interval: Time: 8-20 Flags: (control-D here indicates end of flags) Alias: (control-D here indicated end of entries) If you want another [Flags] entry, simply enter the data for another program for this number at the point where the control-D was given above. If you want to add another number, simply enter the data for the next number at the Alias prompt. You can also pipe the data into this program; the input data then must correspond to the prompts that the program gives! Note that you can only add one number at a time then (there's no way of telling isdnconf that you want to stop giving Flags info and start giving the next Alias info). -D Delete one or more entries which match the data options given. How to supply the data to match is discussed below (see DATA OPTIONS). -V version: display the program's version and terminate. If both -A and -D are given together, isdnconf will terminate, as this is not a valid combination. If neither -A nor -D is given, then isdnconf will display entries which match the data given. DATA OPTIONS: (none applicable for -A) -n 'number' number: match the given number. It can contain wildcards. -a 'alias' alias: match the given alias name. The name can contain wildcards. Note: due to a bug, use '?' instead of '-'. -t 'SI' SI: match the given service indicator. -c 'code' code: match the area code of the phone number. Only usable for displaying (not for -A nor -D). -i ignore case for the -n and -a options. -w word: the parameters for -n and -a must match the whole value, not just a substring. Examples (here for -n): "*34*" matches 123456, 345677, 1234 "34*" matches 34567, 34111 but not 1234 "34??" matches 3411, 3456 "34" matches only 34 Without the -w option, these would match: "*34*" matches 123456, 345677, 1234 "34*" matches 123456, 345677, 1234, 34567, 34111 "34??" matches 123456, 345677, 1234, 3411, 3456 "34" matches 123456, 345677, 1234, 3411, 3456, 34567 -d and: by default the values given to options -n, -a and -t will be combined with a logical OR. If these should be combined with a logi- cal AND (which is probably what most people expect!) you must use this -d option. In this case you can only supply each of the -n, -a and -t options exactly once. OTHER OPTIONS: -q quiet: when using the -A or -D commands, the output is suppressed. When not using the -A or -D commands, only the alias of the match- ing number is shown, or just the number in case the alias is not found. -m MSN: when used in combination with the -A command, instructs isdnconf to create a new MSN entry; the default is to create a new NUMBER entry. Only the values alias, number, SI, zone and interface are applicable to an MSN entry. The following two options do not apply to the -A and -D commands. They only change the output format. -s short: only display the alias and the number. -l long: also display the programs to run ([START]). -f 'filename' file: usually isdnconf uses the /etc/isdn/callerid.conf and the ~/.isdn files. If isdnconf should be applied to another file, use this option. -g global: only applies to the -A and -D commands. Instead of editing ~/.isdn, /etc/isdn/callerid.conf is edited. -1 first: only delete or display the first entry. -M isdnmon: used internally by isdnmon to get alias info. AUTHOR
Andreas Kool <akool@isdn4linux.de> manpage adapted from the README by Paul Slootman <paul@isdn4linux.de> SEE ALSO
callerid.conf(5), isdnlog(8) isdn4k-utils-3.25 1998/12/29 ISDNCONF(1)
All times are GMT -4. The time now is 09:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy