lines Questions

21

Solved

In Bash, how do I count the number of non-blank lines of code in a project?
Crochet asked 22/9, 2008 at 13:20

4

So Im working of reading a file containing appointments that I wrote to earlier in my code. I want to sift through the text file and find appointments on a certain date and add them to an ArrayList...
Benoni asked 6/10, 2014 at 9:56

7

I am writing a code to take an enormous textfile (several GB) N lines at a time, process that batch, and move onto the next N lines until I have completed the entire file. (I don't care if the last...
Vestal asked 13/6, 2011 at 20:20

5

Solved

I'm trying to figure out how to use Regex to merge the contents of my text file (25 lines of data) into one line. So far, I can get Notepad++ to successfully find the lines I'm looking for by m...
Scintillate asked 7/4, 2014 at 13:11

13

I know that I can use: gc c:\FileWithEmptyLines.txt | where {$_ -ne ""} > c:\FileWithNoEmptyLines.txt to remove empty lines. But How I can remove them with '-replace' ?
Monteria asked 10/2, 2012 at 6:5

6

How can I repeat the line in notepad++ ? For example I have the following input: a 01 a 02 a 03 a 04 And I would like it to become: a 01 a 01 a 02 a 02 a 03 a 03 a 04 a 04 So every line shou...
Pemmican asked 3/2, 2014 at 22:5

10

I have a text file say really_big_file.txt that contains: line 1 line 2 line 3 line 4 ... line 99999 line 100000 I would like to write a Python script that divides really_big_file.txt into small...
Averyaveryl asked 29/4, 2013 at 23:25

16

Solved

Need some compact code for counting the number of lines in a string in Java. The string is to be separated by \r or \n. Each instance of those newline characters will be considered as a separate li...
Corded asked 17/5, 2010 at 15:8

8

Solved

I've searched many threads here on removing the first two lines of a string but I can't seem to get it to work with every solution I've tried. Here is what my string looks like: version 1.00 6992...
Midrib asked 14/6, 2015 at 19:9

5

Solved

im trying to copy 300 lines from one file to another, in source file i type "300yy", it says it has yanked 300 lines. go to destination file and press p, it pastes, but only the first 50 lines. a...
Reclaim asked 9/9, 2010 at 13:15

4

Solved

Let's say I have the following text: "test 1 test 2 test 3" I want to select everything between the quotes. I have used vi", but it does not work, it works only when the text is on a single line...
Jaundice asked 13/2, 2014 at 12:1

5

Solved

I have a question i know a line i just know its slope(m) and a point on it A(x,y) How can i calculate the points(actually two of them) on this line with a distance(d) from point A ??? I m asking th...
Ilailaire asked 9/8, 2009 at 2:32

6

Solved

I am programming a project in C and have a problem: I've got a lot of if conditions and it might get really hard for other people to read. I haven't yet found a similar question on the internet. D...
Blinni asked 29/3, 2015 at 12:10

7

Solved

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 duplicated, how many times '234' was duplicated, etc. So ideally, the o...
Bhili asked 15/7, 2011 at 19:53

3

Solved

Coming from a background using Visual Studio and Notepad++ I'm used to the indent guides which help to visually enhance sections of code where the curly braces are used, Xcode (No indent guides) ...
Belonging asked 6/2, 2012 at 21:52

7

Solved

I have a scrollable textView, and I want to limit the number of lines displayed, however xml properties are not working : <TextView android:id="@+id/tv_addesc" android:layout_width="match_par...
Swing asked 16/10, 2012 at 9:42

7

How can I add break lines? I'm using this: $mailbody=$username."\r\n"; $mailbody.=$email."\r\n"; $altbody=$username."\r\n"; $altbody.=$email."\r\n"; But break lines are not there. I'm using $...
Counterword asked 5/3, 2012 at 6:51

3

My buffergeometry disappears after moving the camera to close. You can also see that in drawcalls Three.js example that has TrackballControls. In my case it's alot worser. My points disappear at th...
Debussy asked 29/9, 2015 at 23:19

10

I am fairly new to R and I have the following queries : I am trying to generate a plot in R which has multiple lines (data series). Each of these lines is a category and I want it to have a unique...
Haddington asked 13/2, 2013 at 18:7

3

Solved

I know these commands in Vim: J : Join line below after current line -J : Join current line after line above but how do I join the line above after current line?
Myall asked 28/11, 2012 at 16:26

4

Solved

Suppose I have a file that contain a bunch of lines, some repeating: line1 line1 line1 line2 line3 line3 line3 What linux command(s) should I use to generate a list of unique lines: line1 line2...
Tupi asked 30/5, 2013 at 16:4

5

I'm trying to display some random text into a UILabel and of course I have nothing but its width. Is there a way to set my UILabel's height and/or number of lines depending by the text contained in...
Poteen asked 1/9, 2014 at 11:7

4

Solved

Is there a way to select range of lines in Notepad++? I would like to write two numbers - from and to, say: from 10000 to 25000. I've got this large MySQL dump file and I can select it only by us...
Neckpiece asked 13/12, 2011 at 14:36

9

Solved

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 I just want the good stuff. What I'm doing is a lot more...
Dourine asked 6/3, 2012 at 5:51

3

Solved

Is it possible to text indent each line in a textarea? I'm using a handwritten font and the first letter on each line is getting cut off slightly. I've already used padding and margin, but this doe...
Shrieval asked 29/7, 2010 at 4:20

© 2022 - 2025 — McMap. All rights reserved.