Search Results

Search: Posts Made By: sidorenko
Forum: BSD 12-27-2011
4,319
Posted By sidorenko
Hello dude2cool, Thanks for your suggestion,...
Hello dude2cool,

Thanks for your suggestion, but unfortunately it seems not to help. I've tried adding the keys manually, but the result stayed the same. Actually the keys were already correctly...
Forum: BSD 12-24-2011
4,319
Posted By sidorenko
problems with authorization via `xauth'
Dear all,

I've got problems with X server authentication using `xauth'. The problem is, that I have my local computer running NetBSD 5.1 and a remote computer in LAN which is running Debian GNU...
27,288
Posted By sidorenko
Try please my example with `echo', I want to make...
Try please my example with `echo', I want to make sure that it was `$@' which expanded to `-l'. And not that `foo' was expanded to `ls ' and the `-l' was just appended to the expanded alias.
27,288
Posted By sidorenko
Hmm, as fas as I remember `aliases' can't handle...
Hmm, as fas as I remember `aliases' can't handle arguments, since they are inserted literally. If I need arguments I wrap the code into a function. At least the following example with alias didn't...
7,341
Posted By sidorenko
I'd also like to see an example of doing that...
I'd also like to see an example of doing that with `screen', because I've primarily used `screen' to detach screens and get them back after a while. But here the task is (if I understand it...
Forum: Programming 05-18-2011
10,968
Posted By sidorenko
I assume that there is a problem with the shell....
I assume that there is a problem with the shell. `${PIPESTATUS }' is actually an aray - a functionality which isn't supported by all the shells. So it might work in one shell, but don't work in...
6,724
Posted By sidorenko
On NetBSD there is stat -f "%z" file On...
On NetBSD there is

stat -f "%z" file

On Debian Linux there is

stat -c "%s" file

they both return the size of the file in bytes.
6,812
Posted By sidorenko
>gawk -v re="hi baby" 'match($0,re){print...
>gawk -v re="hi baby" 'match($0,re){print substr($0,RSTART,RLENGTH)}'
ahasdf
ahsshi babyshsd
hi baby



replace "hi baby" with the variable you want to pass
6,812
Posted By sidorenko
Do you want to output exactly the substring...
Do you want to output exactly the substring matched by your regexp? I.e. should the whole input line be printed if it fully matches your regexp and has no more characters outside of match or may an...
Forum: Programming 05-11-2011
3,116
Posted By sidorenko
mhmm, if you are using Bash you could achieve...
mhmm, if you are using Bash you could achieve this by using only Bash's built-in `complete' and a couple of other commands. Or as suggested by pludi you could have a look at the bash autocompletion...
3,379
Posted By sidorenko
Or simply tr -d '[]' may also help
Or simply
tr -d '[]'
may also help
Forum: Programming 05-10-2011
3,116
Posted By sidorenko
Do you want to setup auto-completion of options?
Do you want to setup auto-completion of options?
Forum: Programming 05-04-2011
8,975
Posted By sidorenko
as far as I remember, in ClassA * point; ...
as far as I remember, in

ClassA * point;
point = new ClassA;

`new' will allocate memory for exactly one object of type `ClassA' and yield the address of the 1-st memory cell at which the...
9,625
Posted By sidorenko
if you want to have as the result 0 instead of...
if you want to have as the result 0 instead of fatal error you may use the following:

>awk '{_div1= $3 ? ($1 / $3) : 0 ; _div2 = $7 ? ( $4 / $7 ) : 0; _res = _div2 ? ( _div1 / _div2 ) : 0 ; print...
9,625
Posted By sidorenko
are you sure you have typed correct input?...
are you sure you have typed correct input? Because on my computer it works and results to 0:

>awk '{print ($1/$3) / ($4/$7)}'
0 0 9820373 2069 0 0 11485482
0

...
1,186
Posted By sidorenko
As one of the many possibilities: >cat 1 ...
As one of the many possibilities:

>cat 1
ABCD_1_0
ABCD_25_6
ABCD_326_12
ABCD_10_3



>cat 1 | awk 'match($0, /_[0-9]+/) { print substr($0,1,RSTART+RLENGTH-1)}'
ABCD_1
ABCD_25
ABCD_326...
3,096
Posted By sidorenko
Hi webhope! What do you want exactly? To...
Hi webhope!

What do you want exactly? To replace only the first occurrence of either `initrd' or `kernel' in the whole stdin text? Or simply replace `kernel' with `kernelXXX' in this particular...
2,334
Posted By sidorenko
of course if it is commented it won't be read in....
of course if it is commented it won't be read in. I thought the line had been active , but you had commented it out and pasted it here.
2,334
Posted By sidorenko
1) the values of variables defines in...
1) the values of variables defines in $HOME/bin/scripts/generic/genericVars.sh will be available in concattxnrecords.sh
2) [[ ! -z $MKT_VALUE_FLD ]]
is the same as
if ! test -z $MKT_VALUE_FLD # if...
4,303
Posted By sidorenko
Thank you zaxxon and alister! I've contacted...
Thank you zaxxon and alister!

I've contacted the author, and he said that it had apparently been a typo. Many thanks for your help
4,303
Posted By sidorenko
LC_COLLATE=1
Hello everyone!

I've been analyzing a foreign script and has come across the following line:

...
LC_COLLATE=1 sort -T "${tmp_dir}" "-t " -k1,1 -k2,2 | \
...


And I can't understand how...
3,717
Posted By sidorenko
The expression in slashes is interpreted...
The expression in slashes is interpreted literally, try

...if ($a ~ myvar )...
3,717
Posted By sidorenko
you are welcome or rather nichts zu danken :)
you are welcome or rather nichts zu danken :)
3,717
Posted By sidorenko
echo $SHLIB_PATH | awk -F: '{ for (a=1; a <=NF ;...
echo $SHLIB_PATH | awk -F: '{ for (a=1; a <=NF ; ++a){if ($a~/WALTDB/){print $a}} }'
8,032
Posted By sidorenko
Hi Arsenalman! First of all: means...
Hi Arsenalman!

First of all:

means empty string (literally line which has beginning and end and nothing between them).
Then 'then'. I usually don't use it in awk scripts. My awk gives no error...
Showing results 1 to 25 of 50

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