Questions tagged [lines]

This tag can refer to rows of characters in text output or input, or to the shortest distance between two points.

This tag can refer to:

  • rows of characters in text output or input;
  • the shortest distance between two points (see also: ).
1223 questions
-2
votes
1 answer

Python 2.7.2. How to append specific lines from multiple files into one file.

I'm trying to collect specific lines from multiple text (nmap) documents and then create a new file with them all in a table format. I haven't gotten to the table part yet because I can't get the append to work. #imports import os #Change…
-3
votes
1 answer

Extract specific lines from text file using python

I have large text file and I want to extract specific lines using array this the array of lines number [ 176, 595, 1001, 1377, 1736, 2091, 2459, 2860, 3318, 3746, 4179, 4601] So I want to extract this lines and 100 lines before and 100 lines…
YazOT
  • 13
  • 2
  • 5
-3
votes
1 answer

Output only lines with duplicate words

I'm trying to take a list of lines, and have PHP only output the lines that contain the same word (variable) twice. It should match both singular and plural versions of the word. Example list of lines: This is a best website of all the websites out…
Joe
  • 143
  • 10
-3
votes
1 answer

PowerShell : Spliting text into two (or more) lines

I just finished working on menu generator, but I need to add warning message or popup like this one : the warning message, like the other elements of menu, should have same width of 80 (inner width is 78, because border takes two). I built a…
Kenji Zet
  • 1
  • 3
-3
votes
1 answer

How to join line in a specifice interval using python scripting?

How to join line in a specifice interval using python scripting? I am working of text analysis for the competition. But there is some problem with that. the question start with the number followed by '.' in the html extension file

1. *

The…
rofelia09
  • 51
  • 11
-3
votes
3 answers

rename lines in a file with java

I have a file "text.txt" with all lines looking like this: directory/uninteresting1_aaa directory/uninteresting2_bbb directory/uninteresting3_ccc My goal is to obtain a file with the lines looking like this: aaa bbb ccc I have printed out the…
Lenen
  • 9
-3
votes
1 answer

Draw lines with CSS over an image - responsive behaviour

I want to draw lines on an image by using CSS3, preferably to HTML5 Canvas. I have found this tutorial and this demo which uses an html div: http://www.monkeyandcrow.com/samples/css_lines/ However, when I try to do the effect on an image, the line…
Cesar
  • 514
  • 1
  • 5
  • 16
-3
votes
1 answer

Reading file line by line and print

I'm trying to write a program that takes the file name from the user (for example: English), then opens this file and prints (9 questions) divided on (3 levels, each level has 3 questions), then opens another file (EnglishC) that contains the…
AAlj
  • 1
  • 1
-3
votes
2 answers

Python - Parsing multiple lines of text from file

I am stuck on a problem I am working on. It involves opening a file reading a line and then comparing the next two lines in the file to it. Then move down one line, ie second line in the file and then compare the next two lines to it again. I am…
Vlad
  • 932
  • 6
  • 18
-3
votes
2 answers

Compare hash values stored in text file in Java

I have a text file that stores hash values of files generated in a Java program and I would like to write Java codes to compare the hash values stored in the file to see if they match or not. For example, the text file (md5.txt) contains the…
user3847620
  • 59
  • 4
  • 9
-3
votes
1 answer

Read WORDS (not char) from file without empty lines in C - not duplicated

Hi. I need to read several files without empty lines between words.They can have different layouts, such as 1.txt or 2.txt: 1.txt: treg hreger ig srg fre ig lre eg 2.txt: lregreg igregr kreggerg ereherh tershs hsehsteh asreh treshse How…
santostiagoo
  • 1
  • 1
  • 2
-3
votes
1 answer

How to print range values with specific reference number are given?

I have a set of data file looks like below. I would like to get the interpolation final value (final,P) by referring to 2 set of number range (scoreA and scoreB). Let's say for "Eric", his scoreA is 35 (value between range 30.00 - 40.00) and scoreB…
Zoe
  • 57
  • 1
  • 1
  • 6
-4
votes
1 answer

python to sort lines in a text file based on the int value at the end of each line

I have a big text file like this: train/1175-c/b0a5.bmp 45221 train/1175-c/b0a4.bmp 45220 train/1176-c/b0a4.bmp 45220 train/1176-c/b0a6.bmp 45222 train/1175-c/b0a1.bmp 45217 train/1173-c/b0a2.bmp 45218 train/1175-c/b0aa.bmp…
xhsoldier
  • 575
  • 6
  • 31
-4
votes
1 answer

Python script counting lines in multiple text files in one directory and producing simple report

I need a python script counting lines in all text files in one directory and producing a general report on number of files with n number of lines. The report should look like this: Files with 1 line: 636 Files with 2 lines: 346 Files with 3 lines:…
-4
votes
1 answer

Google Line Chart With Multiple Lines

I have 5 ESP8266 sensors gathering temperature and humidity data. What's the best way to get the data to display as a line for each sensor's temperature and humidity? The sensor id has a value of ESP Here is a sample of the…
Mike C
  • 1
  • 1
  • 4
1 2 3
81
82