Search Results

Search: Posts Made By: danhodges99
12,780
Posted By danhodges99
Thanks guys, found egrep was best for what I...
Thanks guys, found egrep was best for what I wanted, appreciated shell_life.
12,780
Posted By danhodges99
Grep but ignore first column
Hi,

I need to perform a grep from a file, but ignore any results from the first column.
For simplicity I have changed the actual data, but for arguments sake, I have a file that reads:

MONACO ...
3,084
Posted By danhodges99
Thanks guys I believe it does exactly what I'm...
Thanks guys I believe it does exactly what I'm after if I set the NF number to 15. I'll try on much more data too!
3,084
Posted By danhodges99
joeyg, what does the '6' in your code do? If I...
joeyg, what does the '6' in your code do? If I were to add a few columns of numbers onto each line after the 4 that currently exist, would this number need to change?
3,084
Posted By danhodges99
When I run this, I'm getting the following out: ...
When I run this, I'm getting the following out:

ENGPREM 1 ManUtd 25 12 1 0
ENGPREM 2 Arsenal 25 8 1 3
ENGPREM 3 ManCity 26 8 3 2
ENGPREM 4 Chelsea 25 8 2 2
ENGPREM 5 Tottenham 25 7 5 1...
3,084
Posted By danhodges99
Sorry, still inconsistent results with the whole...
Sorry, still inconsistent results with the whole dataset. I was trying to keep things simple with a small amount, but here's a much better dataset to work with:
ENGPREM 1 Man Utd 25 12 ...
3,084
Posted By danhodges99
Merge 2 columns/remove specific spaces
Hi,

I have a requirement to remove certain spaces from a table of information, but I'm unsure where to start.
A typical table will be like this:


ABCDE 1 Elton John 25 12 15 9 3
ABCDE 2...
Showing results 1 to 7 of 7

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