Skip to main content

Questions tagged [line]

-1 votes
3 answers
269 views

Here is a silly example that effectively illustrates what I need: echo '"this text", " ", "is in speech marks"' | perl -lne 'print "$1" if /"(.*?)"/' ...
Signor Pizza's user avatar
0 votes
0 answers
797 views

I tried using rm -rf .* command to remove a hidden file and I am met with this error. rm: refusing to remove '.' or '..' directory: skipping '.' rm: refusing to remove '.' or '..' directory: skipping '...
Agbodike Chetam's user avatar
2 votes
1 answer
93 views

Let's say I want to get the text between the first match of "start_" and the first of "_end", no matter it it's across same or multiple lines. Don't include the matches. Example ...
Smeterlink's user avatar
5 votes
3 answers
1k views

How do I do a search for any of the following: Find folders that start with a space on linux and then remove any starting spaces so the folder can start with a letter or a number? Find FILES that ...
JustAl's user avatar
  • 139
0 votes
1 answer
110 views

In man argument/flag/option chapters generally include a line break, as with: -s silent How could I find only the -s which includes a line break after it, just as in the above example? The ...
Lahor's user avatar
  • 123
0 votes
0 answers
141 views

I have a fold command as below to split a file with very long line into multiple lines. It works if the file is small. But if the length of the file is too long, it stops adding new line character ...
Ram's user avatar
  • 25
2 votes
1 answer
2k views

In the ex editor, one can show line numbers by default by adding this line to a .exrc file: set number Is there a way to have ed start with line numbers showing by default, when lines are invoked?
edman's user avatar
  • 598
2 votes
2 answers
3k views

I am new to shell scripting What I have is a log file, each line begins like the below entry, [2021.04.27.17:03:43.813]: ERROR - [2021.04.27.17:04:36.790]: SUCCESS - The desired output to a new file ...
Mathewshr's user avatar
0 votes
1 answer
533 views

I'm new to PureOS and I've been looking for a way to open a command line window without any luck. How do I open a console/command line window in PureOS?
Akela615's user avatar
0 votes
0 answers
246 views

I have below example, 1|5 2|8 3|1 6|8 7|5 8|10 With below code the chart connects between 3 and 6 x data is there a way to plot zero values between 3 and 6 x data, gnuplot << EOT set ...
ammar's user avatar
  • 87
1 vote
1 answer
57 views

I am writing a script which returns 15 lines of titles and 15 lines of URLs. title 1 title 2 title 3 *snip* title 14 title 15 http://example.com/query?1 http://example.com/query?2 http://example.com/...
here's a name's user avatar
0 votes
2 answers
1k views

Let's say I have the same ASCII text file on Linux and Windows: one two three The two files will have \n and \r\n respectively as EOL character on the two OSes. Does this mean that the file on Linux ...
Enlico's user avatar
  • 2,362
1 vote
4 answers
572 views

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 Normally I would just cat and pipe | it into nl like so: $&...
ntruter42's user avatar
  • 197
1 vote
2 answers
247 views

rather than write scripts for every single process I need to do, I like to just save commands in a text file and copy and paste them on the command line. Of course, some of the specifics of the ...
josa's user avatar
  • 13
2 votes
4 answers
5k views

I have got this script here. It is supposed to run the loop by reading the file LineNumbers.file line by line (each contains a line number) and then accordingly replacing 0/0 with ./. in the ...
P. HamB's user avatar
  • 35

15 30 50 per page