I've been looking on the internet, and haven't found anything simple enough to use in my code. All I want to do is count how many times "-" occurs in a string of characters (as a package name). It seems it should be very simple, and shouldn't require more than one line to accomplish.
And this is... (2 Replies)
Hi all, I am trying to write a command that can help me count the number of lines in the /etc/passwd file ending in bash.
I have read through other threads but am yet to find one indicating how to locate a specifc word at the end of a line. I know i will need to use the wc command but when i... (8 Replies)
I would like to cut words based on the word count of a line. This over here inspired me with some ideas but I wasn't able to get what I needed.
https://www.unix.com/shell-programming-scripting/105841-count-words-each-line-file-using-xargs.html
If the line has 6 words I would like to use this.... (8 Replies)
Hi,
I need help regarding counting specific word or character per line and validate it against a specific number i.e 10. And if number of character equals the specific number then that line will be part of the output.
Specific number = 6
Specific word or char = ||
Sample data:... (1 Reply)
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Hi Folks :)
I have a .txt file with thousands of words. I'm trying to sort the lines in order based on number of words per line.
Example
from:
word
word word word
word word
word word word word
word
word word word
word word
to desired output:
word (2 Replies)
Hello,
I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17".
i.e need to get records having exact 17 pipe separated fields(no more or less)
currently i have below :
awk... (1 Reply)
I am trying to figure out to find word count of each word from my file
sample file
hi how are you
hi are you ok
sample out put
hi 1
how 1
are 1
you 1
hi 1
are 1
you 1
ok 1
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
4 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)