Search Results

Search: Posts Made By: lColli
1,293
Posted By Don Cragun
Since your code_to_value.txt file only contains...
Since your code_to_value.txt file only contains 17 characters per line (not counting the terminating <newline> character), the cut calls creating the files value_1 and value_2 always produce empty...
1,293
Posted By Don Cragun
What do you mean, this is a better example of the...
What do you mean, this is a better example of the data? Your script has three input files: list.txt, code_to_value.txt, and table_values.txt. Is this example of the data an example of one of these...
1,293
Posted By Don Cragun
What you're asking for should be possible with...
What you're asking for should be possible with something like:
sed "/$(cat Y)/ s/number/$(cat X)/" test_imput > test_output
but since you haven't said what OS or shell you're using, we can only...
9,518
Posted By sea
Dear IColli Have no practice with such a...
Dear IColli

Have no practice with such a situation, but according to the error message part you posted, i'd try:
tar -axX *.control.* -f "tarball.tar.gz"
(i mis-aranged the syntax in prior...
9,518
Posted By sea
According to: tar --help | grep excl You...
According to:
tar --help | grep excl

You should try this:
tar -axf "tarball.tar.gz" -X *.control.*

hth
3,829
Posted By durden_tyler
One way to do it with Perl - $ $ $...
One way to do it with Perl -


$
$
$ cat f15
AAAAAAAAAC 46 _ Hs.621716
AAAAAAAAAC 46 AA636074 _
AAAAAAAAAC 77 AI861786 _
AAAAAAAAAC 77 BE536886 _
AAAAAAAAAC 77 BE548727 _
AAAAAAAAAC 77...
3,829
Posted By felipe.vinturin
Another way, but with two commands: #...
Another way, but with two commands:

# myFile="TestFile.txt"
# numDiff=`cut -f1 -d" " "${myFile}" | sort | uniq | wc -l`
# sort -n -k2 "${myFile}" | head -"${numDiff}"
Green 2
Red 4
Black 5
...
3,829
Posted By Franklin52
Try: awk '!a[$1]{a[$1]=$2} $2<a[$1]{a[$1]=$2}...
Try:
awk '!a[$1]{a[$1]=$2} $2<a[$1]{a[$1]=$2} END{for(i in a)print i, a[i]}' file
Showing results 1 to 8 of 8

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