Search Results

Search: Posts Made By: FrancoisCN
1,543
Posted By FrancoisCN
What's the sorting method? My guess is you ignore...
What's the sorting method? My guess is you ignore all letters and consider numbers only?
9,159
Posted By FrancoisCN
Monitoring awk script progress
Is there a way to have awk output its regular output to a file and some other stuff to a log file to monitor progress?

ie: print first field of a file and for every 100000 lines dealt with, print...
13,852
Posted By FrancoisCN
It seems to me the solution you propose would...
It seems to me the solution you propose would only work if there is only 1 space in the first expression but wouldn't if it had multiple (ie "a b cdef"). Anyways, I tried a solution of my own, which...
13,852
Posted By FrancoisCN
can't do tabs on forums but here: file1 ...
can't do tabs on forums but here:

file1
abc def <Tab> X1
ghi jkl <Tab> X2

file2
abc def <Tab> Y1
ghi jkl <Tab> Y2

output
abc def <Tab> X1 <Tab> Y1
ghi jkl <Tab> X2 <Tab> Y2
13,852
Posted By FrancoisCN
join - using *only* tab as a field separator
I have files with tabs separating the fields but those fields values can have whitespace characters (basically a text string). I want to instruct join to not consider white spaces as separators but...
3,929
Posted By FrancoisCN
Sort alpha on 1st field, numerical on 2nd field (sci notation)
I want to sort alphabetically on the first field and sort in descending numerical order on the 2nd field. With a normal "sort -r -n" it does this:

abc ||| 5e-05 ||| bla
abc ||| 3 ||| ble
def |||...
2,992
Posted By FrancoisCN
Find top N values for field X based on field Y's value
I want to find the top N entries for a certain field based on the values of another field.

For example if N=3, we want the 3 best values for each entry:

Entry1 ||| 100
Entry1 ||| 95
Entry1...
11,147
Posted By FrancoisCN
1st file 1 ||| 123/ eb ||| 513 2 ||| k + 12...
1st file
1 ||| 123/ eb ||| 513
2 ||| k + 12 ||| 51
3 ||| | ||| 5
4 ||| a ) ||| 7
5 ||| bla ? ||| 123
6 ||| foobar ||| 543
7 ||| foobar2 ||| 12346

2nd file (text)
bla bla k + 12 bla jkl bla...
11,147
Posted By FrancoisCN
I'm thinking about just changing all special...
I'm thinking about just changing all special characters by adding a "\" before them, and then undo that change when the processing is done. Is that optimal?
11,147
Posted By FrancoisCN
Hey, First of all, thanks a bunch, that...
Hey,

First of all, thanks a bunch, that script is allowing me to get rid of a lot of unnecessary data in my files. I've been using the script from ghostdog74 and it works great for the most part...
11,147
Posted By FrancoisCN
Thanks, it works perfect! I'm just not too sure...
Thanks, it works perfect! I'm just not too sure if I understand how it operates, can you elaborate?
11,147
Posted By FrancoisCN
1st file 1 ||| abc kek ||| 2 1 ||| def foo...
1st file
1 ||| abc kek ||| 2
1 ||| def foo ||| 3
2 ||| ghi bleh blah ||| 4
3 ||| jkl ||| 5

2nd file (text)
bla bla bla jkl bla bla bla
def foo test 123. abc kek

Expected output
1 |||...
11,147
Posted By FrancoisCN
print line if 2nd field exists in text
2 files, first one has 3 fields seperated by ||| and 2nd one is plain text.

I want to copy the lines from the first file if the 2nd field is present anywhere in the text file. This is what I've...
1,844
Posted By FrancoisCN
I have a similar thing I need: I have a...
I have a similar thing I need:

I have a fileA with the following format
word(s) ||| word(s) ||| number
word(s) ||| word(s) ||| number
word(s) ||| word(s) ||| number

and a fileB which is just...
1,844
Posted By FrancoisCN
Woah thanks a bunch for the almost instantaneous...
Woah thanks a bunch for the almost instantaneous response, just tested and it works !
1,844
Posted By FrancoisCN
Copying lines from fileA if they start by a word from fileB
Hi I'm in the need of a script that basically takes two files and generates a 3rd. It reads from fileA and fileB and copies lines from fileA if they start by a word of fileB.

for example

fileA...
Showing results 1 to 16 of 16

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