Hello,
I am attempting to remove all the ^M characters in a file in VI.
The command I am using is
:1,$s/^V^M//g
but it doesn't work, saying 'substitute pattern match failed'.
Any ideas why?
Jules (2 Replies)
While writing a shell script i happen to store some value in a string. Lets say the value is 59788.
Now in this script i want to get the value 9788 removing the first charater 5. The original string length usually remains constant.
Is there a single line command to do this or any simple way to... (4 Replies)
I'm appending header and trailer record for a binary file using
echo "$header" > filename
cat oldfilename >> filename
echo "$trailer" >> filename
The echo is introducing newline character after header and trailer.Please let me know is there any possibility to get rid of newline character. (2 Replies)
Hi,
I am having a pipe (|) delimited file which is having ^Z character in the middle of the text.Could anyone please suggest me how to remove this ^Z Character from the file.I almost used all the ideas posted in this site but none of them worked in my case since tis ^Z character is not coming at... (4 Replies)
Hi ,
I have a file with the following contents in file test1.txt .
AMY_MTT_240Y001,N60_PG2_10G001,A2H_P3H_10G002,7C7_7D7_NP1,A2E_PV0_10G002,L78_PG1_64S001,A2H_P2M_NP2,LDN_YSN_64S001,WV6_WYV_64... (5 Replies)
I have a file like this:
DDD_ABCDE2AB2_1104081408.104480
I need to remove the 1 after the . in the file name so that it reads:
DDD_ABCDE2AB2_1104081408.04480
Having some difficulty getting the command to work. I tried using
cut -d 26
but that just doesn't work. (3 Replies)
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Hi,
I have a file that has data something like below:
A
B
C
D
.....
......
.....and so on
I am trying to bring it in one line with comma delimited something like below :
A,B,C,D
I tried the something below in the code section:
cat File.txt | tr '\n' ',' (1 Reply)
Dear ALL,
How to remove junk charecter ^M from unix file i am using sun solaris unix.
I already tried few commands
:%s/^M//g
:%s/r//g
but it didnt helped me.
Any help appriciated.
Thanks
Ripudaman
Please view this code tag video for how to use code tags when posting code... (5 Replies)
I've got a file where each line is separated by ^M characters. I want to be able to cat the file without those lines. When I cat the file now what I see are blank lines. However, the blank lines are actually ^M characters; when I open the file with vi they show up.
X38888
No
No
No... (7 Replies)
Discussion started by: newbie2010
7 Replies
LEARN ABOUT DEBIAN
truchet
truchet(6x) XScreenSaver manual truchet(6x)NAME
truchet - draws curved or angular Truchet patterns
SYNOPSIS
truchet [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual]
[-delay milliseconds] [-min-width integer] [-min-height integer] [-max-width integer] [-max-height integer] [-max-linewidth integer] [-min-
linewidth integer] [-erase] [-no-erase] [-erase-count integer] [-square] [-not-square] [-curves] [-no-curves] [-angle] [-no-angles]
[-scroll] [-scroll-overlap integer] [-anim-delay integer] [-anim-step-size integer]
[-fps]
DESCRIPTION
The truchet program draws arc and line based Truchet patterns.
OPTIONS
truchet accepts the following options:
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-mono If on a color display, pretend we're on a monochrome display.
-install
Install a private colormap for the window.
-visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-delay milliseconds
How long to wait between drawing each screenful. Default is 1 seconds.
-min-width integer
The minimum width in pixels of each square. Default is 40.
-min-height integer
The minimum height in pixels of each square. Default is 40.
-max-width integer
The maximum width in pixels of each square. Default is 150.
-max-height integer
The maximum height in pixels of each square. Default is 150.
-max-linewidth integer
The maximum width of the lines used to draw. Default is 25.
-min-linewidth integer
The minimum width of the lines used to draw. Default is 2.
-erase
-no-erase
Whether to clear the screen after each screenful is drawn. Default is True (erase).
-erase-count integer
The number of screenfuls to draw before erasing. Default is 25.
-square
-not-square
Whether to force the tiles to be square. Default is True (square).
-curves
-no-curves
Whether to draw the arc based Truchet pattern. Default is True (curves).
-angles
-no-angles
Whether or not to draw the line based Truchet pattern. Default is True (angles)
-scroll Use the scroll mode. Default is False.
-scroll-overlap
The amount to scroll from one side to another. Default is 400.
-anim-delay
The time to pause between each animation step. Default is 100.
-anim-step-size
The amount of steps to skip between each animation step. Default is 3.
-fps Display the current frame rate and CPU load.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO X(1), xscreensaver(1)COPYRIGHT
Copyright (C) 1998 by Adrian Likins.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation.
AUTHOR
Adrian Likins, 1998.
X Version 11 5.15 (28-Sep-2011) truchet(6x)