Top "Lines" questions

The shortest distance between two points.

Find duplicate lines in a file and count how many time each line was duplicated?

Suppose I have a file similar to the following: 123 123 234 234 123 345 I would like to find how many times '123' was …

file count find duplicates lines
Plot multiple lines (data series) each with unique color in R

I am fairly new to R and I have the following queries : I am trying to generate a plot in …

r colors plot unique lines
More than 1 row in <Input type="textarea" />

I'm having troubles getting my <input type="textarea" /> to have more than 1 row, I tried adding the properties …

input textarea rows lines
Batch / Find And Edit Lines in TXT file

I want to create a batch while which finds specific lines in a batch file and are able to edit …

batch-file find edit text-files lines
Skip first couple of lines while reading lines in Python file

I want to skip the first 17 lines while reading a text file. Let's say the file looks like: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 good stuff …

python file lines skip
remove empty lines from text file with PowerShell

I know that I can use: gc c:\FileWithEmptyLines.txt | where {$_ -ne ""} > c:\FileWithNoEmptyLines.txt to remove empty lines. …

powershell text-files lines
count (non-blank) lines-of-code in bash

In Bash, how do I count the number of non-blank lines of code in a project?

bash unix count lines nonblank
Count the number of lines in a Java String

Need some compact code for counting the number of lines in a string in Java. The string is to be …

java string lines
Select range of lines in Notepad++

Is there a way to select range of lines in Notepad++? I would like to write two numbers - from …

range selection notepad++ lines
How to place arrow head triangles on SVG lines?

I am new to SVG and I am trying to draw a straight line between two points. I managed so …

svg lines