05-21-2009
I tried the combinations below which do not change anything or are not recognized
\n
\^m
\^Y
Ctrl-V + Ctrl-M
Ctrl-V + Ctrl-Y => nothing is typed in the console, I have to do a Ctrl-C to get out
\x0D$
\xC1$
[^M^Y]
[^M]
[^Y]
\c[m => not recognized
sed 's/.$//' does remove the ^M at the end of each line but then it is still a multi-line format. Its like removing the last character of each line but keeping the end-of-line linefeed.
[added comments]
Is there a way to find out in VI what is the ascii value of the character under the cursor ?
It would help me identify the right decimal value to use in a replacement string.
[added comments]
I found out that ^M is actually \015. So I can remove it with tr -d '\015'
But I still haven't found out what ^Y is.
Last edited by Browser_ice; 05-21-2009 at 03:34 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: meharo
4 Replies
2. Shell Programming and Scripting
Hi I'm trying to replace text in a file based upon a pattern.
The pattern I'm looking for is:
<styleURL>#style0002</styleURL>
<name>#######6105#######</name>The # are seven alphanumeric characters before and after 6105.
I need it to replace that with this recursively:
... (4 Replies)
Discussion started by: Grizzly
4 Replies
3. Shell Programming and Scripting
Hi
I need to create multiple text files from onc text file on AIX. The data of text files is as below:
**********************************************
**********************************************
DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009
Copyright (c) 1982,... (11 Replies)
Discussion started by: lodhi1978
11 Replies
4. Shell Programming and Scripting
i am editing a big log file with the following pattern:
Date: xxxx Updated: name
Some log file text here
Date: eee Updated: ny
Some log file text here
Basically i want to remove all the text in a line before the "Updated" pattern. I sill want to print the other... (4 Replies)
Discussion started by: balan1983a
4 Replies
5. Shell Programming and Scripting
Can someone help me with a sed command:
There will be multiple occurences in a file that look like this:
MyFunction(12c34r5)
and I need to replace that with just the 12c34r5 for every occurrence. The text between the parentheses will be different on each occurrence, so I can't search for that.... (4 Replies)
Discussion started by: missb
4 Replies
6. Shell Programming and Scripting
HI Folks,
I'm looking for a solution for this issue.
I want to find the Pattern 0/ and replace it with /. I'm just removing the leading zero. I can find the Pattern but it always puts literal value as a replacement.
What am I missing??
sed -e s/0\//\//g File1 > File2
edit by... (3 Replies)
Discussion started by: SirHenry1
3 Replies
7. Shell Programming and Scripting
My text file looks like below
.
.
.
abcdefghi
jklmnop
$Bad_ptrq_GTS=rcrd_ip.txt
$Bad_abcd_REJ=rcrd_op.txt
ghijklm
$Bad_abcd_TYHS=rcrd_op.txt
abcgd
abcdefghi
jklmnop
$Bad_ptrq_GTS=rcrd_ip.txt (2 Replies)
Discussion started by: machomaddy
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: my_Perl
3 Replies
9. Shell Programming and Scripting
i have a file which contains data seperated by comma. i want to replace text after 3rd occurrence of a comma.
the input file looks like this
abcdef,11/02/2015 11:55:47,1001,1234567812345678,12364,,abc
abcdefg,11/02/2015 11:55:47,01,1234567812345678,123,,abc
abcdefhih,11/02/2015... (4 Replies)
Discussion started by: gpk_newbie
4 Replies
10. UNIX for Beginners Questions & Answers
hi unix expert
is there any command in linux to repace a pattern in the text to another pattern?
many thanks
samad (2 Replies)
Discussion started by: abdossamad2003
2 Replies
LEARN ABOUT DEBIAN
colrconv
COLRCONV(1) General Commands Manual COLRCONV(1)
NAME
colrconv - hamradio convers client with sound and ncurses color support
SYNOPSIS
colrconv [options] <host> [<service>]
DESCRIPTION
This manual page documents briefly the colrconv commands.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
Colrconv is a modified version of VA3DP's ttylink client. In addition to the basic split screen session it gives you color and sound sup-
port plus some line editing capabilities, a scroll buffer and a status line. Also the default service is changed to 3600 (convers).
A new color is assigned to each user the first time he sends text and this color is used when displaying any subsequent text from this
user. Available colors are green, yellow, cyan, magenta, blue and red. These are used twice, the second time with BOLD attribute on. After
the colors run out they are used again.
Bold red is reserved for special messages (starting with ***) and for private messages (eg. <*oh2bns*>: Hello!).
Colrconv plays certain sound files when it receives text from the convers bridge. The files are: callsign.au (eg. oh2bns.au), unknown.au,
signedon.au says.au and pingpong.au. This feature is still a bit experimental and only works with older convers servers. Also you have to
make your own .au file. The rsynth package is good at this. See the readme for details. Sound files should go into /usr/lib/colrconv.
OPTIONS
-nocolor
Start colrconv in black and white, even if terminal has color support.
-c channel
Connect to channel number 'channel' at startup.
-n name
Send a '/n name' when connected. When -n is omitted the user's login name is used.
LINE EDITING COMMANDS
Ctrl-A Goto beginning of line.
Ctrl-B and Left arrow
Go one character backward.
Ctrl-D Delete character under cursor.
Ctrl-E Goto end of line.
Ctrl-F and Right arrow
Go one character forward.
Ctrl-K Kill from cursor to end of line (and store to kill buffer).
Ctrl-L Repaints the whole screen.
Ctrl-N and Down arrow
Scroll Down.
Ctrl-P and Up arrow
Scroll Up.
Ctrl-R Reprint current line.
Ctrl-U Delete current line in total.
Ctrl-W Erase last word.
Ctrl-Y Yank kill buffer.
The scroll buffer can be browsed with arrow keys Up and Down (or Ctrl-P and Ctrl-N), PageUp, PageDown, Home and End keys.
FILES
If ~/.conversrc exists, it is sent to the server after logging in. Handy for automatically sending commands like /notify, /who, etc.
SEE ALSO
/usr/share/doc/colrconv/README.colrconv.
AUTHOR
This manual page was written by Joop Stakenborg <pa3aba@debian.org>, for the Debian GNU/Linux system (but may be used by others).
COLRCONV(1)