Search Results

Search: Posts Made By: irrevocabile
2,945
Posted By irrevocabile
ah... the same file twice. super! thanks.
ah... the same file twice. super! thanks.
1,672
Posted By irrevocabile
Simply insert the stuff with sed? sed...
Simply insert the stuff with sed?


sed 's/^/wget /' <yourdata.txt | sed 's/$/ -Ofile1.ext/' >result
1,425
Posted By irrevocabile
A lame way of doing it: sed '/^3/d'...
A lame way of doing it:


sed '/^3/d' <yourdata.txt >temp1
sed '/^3/!d' <yourdata.txt >temp2
cat temp2 temp1 >result
2,945
Posted By irrevocabile
awk -- print combinations for 2 cols
Dear all, could you please help me with awk please?
I have such input:

Input:
a d
b e
c f

The number of lines is unknown before reading the file.

I need to print possible combination...
8,710
Posted By irrevocabile
solved
Thank you! Blagodarya! Worked on gawk like a charm. This i couldn't figure out, but now i see.
$i > m[i] && m[i] = $i
8,710
Posted By irrevocabile
loop in awk - column max for each column
Hello all,

this should really be easy for you... I need AWK to print column maxima for each column of such input:

Input:
1 2 3 1
2 1 1 3
2 1 1 2
Output should be:

2 2 3 3
This does the...
12,210
Posted By irrevocabile
This is as clear as a child's tear drop... thank...
This is as clear as a child's tear drop... thank you.
12,210
Posted By irrevocabile
Works
Chubler_XL's works perfectly... in gawk, nawk, awk. Trying to see how...
12,210
Posted By irrevocabile
Thank you yinyuemi. I was trying to make this...
Thank you yinyuemi. I was trying to make this work, no success so far. Output is an empty file. Thank you nevertheless.
12,210
Posted By irrevocabile
Thank you for your reply!!! It needs to be: #...
Thank you for your reply!!!
It needs to be:
# input data
aa bb aa bb cc dd ee ee ee
aa aa bb cc ee ee dd ee cc
# resulting count line
aa,bb,cc,dd,ee
2,2,1,1,3
2,1,2,1,3I made a shell script...
12,210
Posted By irrevocabile
word frequency counter - awk solution?
Dear all,

i need your help on this. There is a text file, i need to count word frequency for each word with frequency >40 in each line of file and output it into another file with columns like...
Showing results 1 to 11 of 11

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