Search Results

Search: Posts Made By: Nonito84
1,659
Posted By Nonito84
Thanks sir, that worked beautifully.
Thanks sir, that worked beautifully.
1,659
Posted By Nonito84
Any way to get rid of ^M characters in a text file using pr?
When I use vi to see what's in the file I get this:

int add1(int x) {^M return x + 1;^M}
^Mint subtract1(int x) {^M return x - 1;^M}
^Mint double_it(int x) {^M return x * 2;^M}...
1,575
Posted By Nonito84
Still not working :(
Still not working :(
1,575
Posted By Nonito84
fgrep not printing non matching lines
I'm using this:

fgrep -f file1.txt file2.txt

To find lines in file1 that match patterns found in file2.

When I add -v:
egrep -v -f file1.txt file2.txt

It won't return non matching...
9,346
Posted By Nonito84
I totally forgot about redirection! Thank...
I totally forgot about redirection!

Thank you!
9,346
Posted By Nonito84
How to translate multiple spaces into a single space using tr command?
I am trying to read a txt file and trying to translate multiples spaces into single spaces so the file is more organized, but whenever I try the command:

tr ' ' ' ' w.txt

The output is:
...
Showing results 1 to 6 of 6

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