07-21-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have file as shown below.
abc,
def,
abc,
xyz,
I have to remove ',' from end of last line (xyz,). How can I do that with single command? Is it possible or I have to iterate through complete file to remove that?
- Malay (2 Replies)
Discussion started by: malaymaru
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: ammu
2 Replies
3. UNIX for Dummies Questions & Answers
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
4. Shell Programming and Scripting
How can I remove the last character from each line of a file?
This must be done without "funny" characters, as I want to transfer the code to/from Windows.
Any ideas? (17 Replies)
Discussion started by: cjhancock
17 Replies
5. Shell Programming and Scripting
hi
Someone can give me some clue or script in writing the below requirement
I am having 5 or 10 files of unix files which contain ^M charactes.
First we have to find ^M character and concat the line where it has broken and then we have to remove the ^M character from the uxix... (11 Replies)
Discussion started by: vsantoshusa
11 Replies
6. HP-UX
Hi Experts,
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
Eg:
ID,Client ,SNo,Rank
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies
7. Shell Programming and Scripting
Hi all,
Please help me to remove first and last character of each line in a file.
Thanks,
Baski (5 Replies)
Discussion started by: baskivs
5 Replies
8. Shell Programming and Scripting
Hi there,
A total sed noob here. Is there a way using sed to delete everything before a character AND after another character on each line in a file? The deletion should also delete the indicating characters(here: an opening and a closing parenthesis).
The original file would look like... (3 Replies)
Discussion started by: bnbsd
3 Replies
9. Shell Programming and Scripting
Hi friend,
I have one file , and i want to read that file character by character.
I need this script in ksh.
while using read option with -n1 am getting error.
while read -n1 c read has bad option
And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
10. Shell Programming and Scripting
Hello guys,
I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line.
HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP))
Please help. (6 Replies)
Discussion started by: sang8g
6 Replies
LEARN ABOUT DEBIAN
kaleidescope
kaleidescope(6x) XScreenSaver manual kaleidescope(6x)
NAME
Kaleidescope - rotating line segments
SYNOPSIS
kaleidescope [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-install] [-visual visual]
[-color_mode mono | nice | greedy] [-nsegments int] [-ntrails int] [-local_rotation int] [-global_rotation int] [-delay usecs] [-redmin
int] [-greenmin int] [-bluemin int] [-redrange int] [-greenrange int] [-bluerange int] [-fps]
DESCRIPTION
The kaleidescope program draws line segments in a symmetric pattern that evolves over time.
OPTIONS
kaleidescope accepts the following options:
-root Draw on the root window.
-color_mode mono | nice | greedy
Specify how kaleidescope uses colors. Mono uses just the default foreground and background colors. Nice uses one color for each
segment (specified by nsegments). Greedy uses (ntrails * nsegments) + 1 colors.
-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.
-nsegments integer
The number of segments to draw. Default is 7.
-ntrails integer
The number of trails to draw. Default is 100.
-local_rotation integer
The rate at which segments rotate around their center. Default is -59.
-global_rotation integer
The rate at which segments rotate around the center of the window. Default is 1.
-redmin, -greenmin, -bluemin, -redrange, -greenrange, -bluerange
All take an integer argument. When colors are randomly chosen, they are chosen from the interval min to min plus range. The mini-
mums default to 30000. The ranges default to 20000.
-delay microseconds
How much of a delay should be introduced between steps of the animation. Default is 20000, or about 5 frames a second.
-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), kaleidescope(6x)
COPYRIGHT
Copyright (C) 1997 by Ron Tapia. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose
is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this
permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose.
It is provided "as is" without express or implied warranty.
AUTHOR
Ron Tapia <tapia@nmia.com>, 20-Mar-97.
X Version 11 5.15 (28-Sep-2011) kaleidescope(6x)