Search Results

Search: Posts Made By: yinyuemi
3,418
Posted By Chubler_XL
Both those solutions give this for the list line:...
Both those solutions give this for the list line:

tagId=128, length=32, value=[ 34 67 23 65 21 87 45 98 34 31 30 33 31 3031 34 35 31 5f 90 30 38 30 35 38 30 34]

Fixes:
sed...
2,381
Posted By Chubler_XL
Funny but the above didn't work for me I needed...
Funny but the above didn't work for me I needed the following:

awk -F, '!a[$1,$2,$3]++'

Note: extra commas are to avoid false match between "aa,b,c" and "a,ab,c" or ",a,b" and "a,,b"
62,896
Posted By clx
I guess no need of "echo" here. x2=${x1##* }...
I guess no need of "echo" here.

x2=${x1##* }

Another way,

expr "$x1" : '.* \(.*\)'
12,202
Posted By Chubler_XL
Sorry to be pedantic yinyuemi, but it now misses...
Sorry to be pedantic yinyuemi, but it now misses the last word on each line change n<NF to n<=NF

---------- Post updated at 11:56 AM ---------- Previous update was at 11:33 AM ----------

And,...
8,255
Posted By Scrutinizer
@yinyuemi, to remove those 4 zeroes the...
@yinyuemi, to remove those 4 zeroes the parentheses are not required...
sed 's/0\{4\}//'
or just
sed s/0000//
4,538
Posted By Chubler_XL
Y, your revised solution works for me now but it...
Y, your revised solution works for me now but it dosn't work for this


lookupslowball
slowly
play
child
quick
slow
not
put
the
boy
ran
ly
is

theboyranthroughslowly...
9,814
Posted By alister
for fsrc in *.txt; do fdst="${fsrc#*_}" ...
for fsrc in *.txt; do
fdst="${fsrc#*_}"
fdst="${fdst%_*}.txt"
mv "$fsrc" "$fdst"
done

Regards,
Alister

---------- Post updated at 02:28 PM ---------- Previous update was at...
3,091
Posted By vgersh99
just be aware that the 'ARGIND' is a GNU-specific...
just be aware that the 'ARGIND' is a GNU-specific extension not available in other awk-s.

A better 'paradigm' is:

FNR==NR {a[$1]=$2;next}
7,837
Posted By alister
sed -n ' /^START:/ { h :next ...
sed -n '
/^START:/ {
h
:next
n
H
/^END/ {
/^END (VIO)/ {g; p;}
d
}
b next
}' filenameRegards,
Alister
Showing results 1 to 9 of 9

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