hi ,
i have follwing strings in a text file
hello i am cool
hey i am cool
arrey i am cool
in all the above 3 i wanna retrieve cool.......for this i used
split(/ /)
but it takes into consideration only one space.......is there any regular expression to do the trcik?
... (7 Replies)
I have a script that has a counter in it, the output from the script puts the values in columns, and when the values are greater than 9 it moves the rest of the row over, hence displacing the columns. Is their something I can do to make these values fit in their respective column? I tried typing an... (1 Reply)
Is there a way to adjust spacing of a line using k shell?
e.g I have a file below
$ cat file1
AAA BBB CCC
A B C
AAAA BB CC
I want each word to be adjusted with spaces to have 10 character length like below:
AAA BBB CCC
A B C
AAAA BB CC
Any... (4 Replies)
Hi guys, I have this little code:
for directory in / $(echo $path | tr '/' ' ' )
do
cd $directory
echo "$(ls -ld | cut -c2-10 | sed 's/.\{3\}/& /' | sed 's/.\{7\}/& /' |
sed 's/.\{1\}/& /g')" " $directory"
done
The output of this will be showing the permissions with spaces so it will... (2 Replies)
while IFS="" read r; do
printf "XXX\t%s\n" "$r"
done < test1.txt > test.txt
The issue is, XXX wud be a dummy column/row added to the file..But i want this XXX column to be a separated as a TAB Delimiter
it should be something like
XXX 1
XXX 2 (3 Replies)
I'm trying to combine text files without a space. So if i use the paste command
paste file1 file2 file3 > file4
the new file created has spacing between the contents of the once individual files. Is there some trick I can do with a delimiter that removes the spaces.. like paste -d'' or... (1 Reply)
Hi!
I need to change the spacing assigned to each number in a text file. I have an input file with 5 columns and 3 rows. Here, all numbers are separated by 1 space. I need to change this in such a way that the number in the first column has 6, the number in the second column has 5 and all other... (2 Replies)
here is my code and output, i just want to display it clearly to the users. how can I fix the spacing or put some headers like NAME, DEV id, Size, Meta
code:
symdg show $INS-${SNAP} | egrep "D-" | awk '{print $1,$3,$NF,$5}'
output:
D-arch 23C2 983040 (M)
D-db 0704 245760 (M)
D-undo 07DB... (12 Replies)
Hello,
I am running a script which sends an output as an email; I am having issues with the spacing being not uniform in the message. Snippet of the code and email message below:
if ] then echo "$Hostname\tMISSING\tHMCBackup" >> $BackupMsg
else if ] then echo... (12 Replies)
Hi,
I'm trying to match html strings using grep commend and I'm not able to eliminate the extra spaces. This is working when there is no space. Can anyone help me what am I missing here?
I'm able to match KayDee where there is no space.
grep commands tried:
grep -P -o -e... (1 Reply)
Discussion started by: Shenbaga.d
1 Replies
LEARN ABOUT DEBIAN
lines
lines(3U) InterViews Reference Manual lines(3U)NAME
Point, Line, MultiLine, S_MultiLine, SF_MultiLine - structured graphics classes for points, lines, and open polygons
SYNOPSIS
#include <Unidraw/Graphic/lines.h>
DESCRIPTION
Point and Line are subclasses of Graphic that draw a point and a line, respectively. MultiLine is a Vertices subclass that serves as an
abstract base class for open polygons: S_MultiLine is a MultiLine subclass for stroked open polygons, while SF_MultiLine is a stroked-
filled open polygon. Point, Line, and S_MultiLine store a PSBrush, while SF_MultiLine also stores a PSPattern.
POINT PUBLIC OPERATIONS
Point(Coord x, Cord y, Graphic* = nil)
Construct a Point object, optionally supplying a graphic from which to obtain an initial set of graphics state.
void GetOriginal(Coord&, Coord&)
Return the coordinates supplied in the constructor.
LINE PUBLIC OPERATIONS
Line(Coord x0, Cord y0, Coord x1, Coord y1, Graphic* = nil)
Construct a Line object, optionally supplying a graphic from which to obtain an initial set of graphics state.
void GetOriginal(Coord& x0, Coord& y0, Coord& x1, Coord& y1)
Return the line's endpoints as supplied in the constructor.
MULTILINE PROTECTED OPERATIONS
MultiLine(Coord* x, Coord* y, int count, Graphic* = nil)
MultiLine's constructor is protected to prevent instantiation of the abstract base class. The parameters are passed directly to the
Vertices constructor.
S_MULTILINE PUBLIC OPERATIONS
S_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil)
Construct an S_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state.
SF_MULTILINE PUBLIC OPERATIONS
SF_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil)
Construct an SF_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state.
SEE ALSO Graphic(3U), Vertices(3U), pspaint(3U)Unidraw 2 February 1991 lines(3U)