Search Results

Search: Posts Made By: Enobarbus37
3,007
Posted By Enobarbus37
It's \n, and thank you for the tip on seeing the...
It's \n, and thank you for the tip on seeing the codes and the "letters".

I'm using gvim, but really MacVim. It is perhaps somewhere in there. But I don't know where.

Thank you everyone. ...
3,007
Posted By Enobarbus37
The file is a Unix file. No question about it. ...
The file is a Unix file. No question about it.

When I execute :set list, each line is terminated by a red dollar sign ($). No ^M's in sight.

The file was created in the following way. It is...
3,007
Posted By Enobarbus37
^M in yank but not in file in Vim
I am trying to visually select a section of text in vim and then substitute for it using the :%s/ sequence.

First I visually select text. Then I yank using "ay. Then I type :%s/ followed by...
3,139
Posted By Enobarbus37
Thank you Jim for this tip. I had made a...
Thank you Jim for this tip.

I had made a stupid, stupid, stupid rookie mistake. The program was inadvertently set-up to take text from the command line and there was none forthcoming so it hung....
3,139
Posted By Enobarbus37
AWK getline quits inexplicably after many lines
I am using getline to read a file in a BEGIN block:

BEGIN {
while ((getline < "testFile.html") > 0) {
print $0 > "text.html"
}
}

The file is a normal HTML file. For some reason...
8,726
Posted By Enobarbus37
Ecaping a line feed in grep/egrep
Is it possible to use the escape sequence:

\r

to match a line feed in grep/egrep?

I want to use a regexp that crosses over two lines, and it does not seem to be possible.
13,614
Posted By Enobarbus37
Well, I had only recently started using the...
Well, I had only recently started using the double quotes in the expression, and I had not yet gotten around to escaping the ! in the double quotes.

So, you are right. Félicitations et chapeau. ...
13,614
Posted By Enobarbus37
Exclamation point in Bash
Here is a script using egrep that extracts the last word in each line:

egrep -o " [a-zA-Z'-]+[,:.!';?]*$" File.txt > Results.txt

If it is placed in a file with the requisite header:
...
21,834
Posted By Enobarbus37
I should add that I had overlooked the -o option...
I should add that I had overlooked the -o option to grep which is certainly the first place to start. I apologize for that total rookie error.

My excuse? I was using the "grep" facility in...
21,834
Posted By Enobarbus37
Thank you one and all! I have enough to keep me...
Thank you one and all! I have enough to keep me very busy. A great pleasure to receive your replies. Thanks again.
21,834
Posted By Enobarbus37
Unfortunately, I don't know that the "and" is in...
Unfortunately, I don't know that the "and" is in the second column. That's the problem.
21,834
Posted By Enobarbus37
Pulling out the matched expression
The grep script pulls out all the *lines* with the matching expression.

I just want to pull out the subset of the text that matches the expression.

If the expression were /and/ and the line was...
21,834
Posted By Enobarbus37
Extracting a regex with awk
I have a regexp that I wish to match against every line of a file using awk.

But I do not want to substitute it or select the line.

I want to pull the matched text out and put it in a different...
43,351
Posted By Enobarbus37
A complicating feature
Thank you for your replies!

Unfortunately, here is a partial list of my file names:

1 INSERM Avenir, Epidemiology of Sudden Death in the Population, Paris XI University.rtf

24% mortality in...
43,351
Posted By Enobarbus37
Using cat to combine files using wildcards
How do I use cat (presumably with a sh script) to combine all the files in a directory without listing them individually.

Thank you for your patience with this very elementary question.:)
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 10:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy