Related
ntruter42 I have a file.txt containing: this is the first
second line
not last line
fourth but first
second in list
seventh in file
seventh with nl
Usually I just want to image catwith the tube |likenl this: $> cat file.txt | nl
1 this is the first
2 secon
flood I'm having trouble getting line numbers in an emacs buffer. I have the following numbers in my init file: (setq line-number-display-limit 2000000) and I have verified that it has line number mode turned on. When I first enter the (~500) line buffer, emac
flood I'm having trouble getting line numbers in an emacs buffer. I have the following numbers in my init file: (setq line-number-display-limit 2000000) and I have verified that it has line number mode turned on. When I first enter the (~500) line buffer, emac
Akma How to add line numbers in Emacs? Please explain, I am an absolute beginner. monster dragon If you run it in default mode, it's in the menu: Options > Show/Hide > Line Numbers. Then select Options > Save Options to save it for later sessions. If you run i
Akma How to add line numbers in Emacs? Please explain, I am an absolute beginner. monster dragon If you run it in default mode, it's in the menu: Options > Show/Hide > Line Numbers. Then select Options > Save Options to save it for future sessions. If you run
Ali Awan | As you can see in the image, the selected lines are black and the empty lines in the buffer are a different color, is there a way I can use this highlightcommand to make the empty lines completely black like the selected lines? Ali Awan | I solved i
carol I have tab delim file like this: a 12 17 bac 30 42
a 15 18
a 18 22
I want to repeat bac 30 42 columns for the rest of the rows like this: a 12 17 bac 30 42
a 15 18 bac 30 42
a 18 22 bac 30 42
I tried the following commands aw
Dheeraj Singh I need to get the row numbers of explicit rows grouped by ID. Suppose the data frame (df) looks like this: id a b
3 2 NA
3 3 2
3 10 NA
3 21 0
3 2 NA
4 1 5
4 1 0
4 5 NA
I need to create one more column t
Dheeraj Singh I need to get the row numbers of explicit rows grouped by ID. Suppose the data frame (df) looks like this: id a b
3 2 NA
3 3 2
3 10 NA
3 21 0
3 2 NA
4 1 5
4 1 0
4 5 NA
I need to create one more column t
Dheeraj Singh I need to get the row numbers of explicit rows grouped by ID. Suppose the data frame (df) looks like this: id a b
3 2 NA
3 3 2
3 10 NA
3 21 0
3 2 NA
4 1 5
4 1 0
4 5 NA
I need to create one more column t
Yang Haik I need to concatenate 2000 lines of code which I hope can be combined into one line. I know that in Emacs, with the replace-stringcommand, I can add the for cascade to the end of each line in +one go. However, when I do this, I keep getting a syntax
Martin Herrmann I have a list of filenames and line numbers in the following format: ./foo.txt:1:(more characters)
./foo.txt:3:(more characters)
./bar.txt:10:(more characters)
The list can come from a file, or it can be output by a process (for example grep -
hype So basically I have a 3 line file with 3 numbers on each line 7,2,1
10,0,0
2,8,0
Then based on user input, I want to +1 one of the numbers on the line. if user_input == 1
+1 to line1Number1
elif user_input == 2
+1 to line1Number2
elif user_in
bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix])
Switch to: U:--- filename All (??, 4) (Conf[Unix])
It's a bit annoying and I'd
bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix])
Switch to: U:--- filename All (??, 4) (Conf[Unix])
It's a bit annoying and I'd
bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix])
Switch to: U:--- filename All (??, 4) (Conf[Unix])
It's a bit annoying and I'd
username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format
username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format
username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format
caterpillar I (global-linum-mode t)use to display line numbers in Emacs. This worked fine until I used the ctrl+ up/ downcommand ( forward-paragraphand backward-paragraph) to navigate the buffer, at which point some line numbers were displayed incorrectly (see
bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix])
Switch to: U:--- filename All (??, 4) (Conf[Unix])
It's a bit annoying and I'd
username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format
Christy Is there a way to turn on line numbers for nano? Believe The only thing that comes close to what you want is an option to show the current cursor position. You can activate it with the --const(manpage: keep showing cursor position) option or by pressin
Christy Is there a way to turn on line numbers for nano? Believe The only thing that comes close to what you want is an option to show the current cursor position. You can activate it with the --const(manpage: keep showing cursor position) option or by pressin
Matt I have added two new columns on one of the database tables. They are called exam and assignment results. Currently, both columns are empty. I want them to be filled with random check results, but not more than 100. How to generate random numbers from 0 to
Matt I have added two new columns on one of the database tables. They are called exam and assignment results. Currently, both columns are empty. I want them to be filled with random check results, but not more than 100. How to generate random numbers from 0 to
wen Often, I find myself writing short macros that, for example, add or remove line comments or correct indentation on lines. However, with whitespace mode enabled, I still have to be careful not to trigger these macros on empty lines. If a macro tries to remo
wen Often, I find myself writing short macros that, for example, add or remove line comments or correct indentation on lines. However, with whitespace mode enabled, I still have to be careful not to trigger these macros on empty lines. If a macro tries to remo
ksrds I have some rows in copySheet.sheet1 with some special keywords as "Ojha" in the first column. So I want to copy the entire row containing "Ojha" in the first row and paste it into another pasteSheet.sheet2. At first, I found out that the cell has "Ojha"