Search Results

Search: Posts Made By: ctsgnb
6,038
Posted By ctsgnb
I don't get what he is trying to achieve ... does...
I don't get what he is trying to achieve ... does it help?



$echo -sagot | sed "s/-//" | sed "s/sagot/-&-/" | sed "s/-//"
sagot-

$echo -sagot | sed "s/-//" | sed "s/sagot/-&-/"
-sagot-
...
7,777
Posted By ctsgnb
tr '\n' ' ' <( echo $str ) or echo $str | tr...
tr '\n' ' ' <( echo $str )
or
echo $str | tr '\n' ' '
6,874
Posted By ctsgnb
Give a try replacing your : awk...
Give a try replacing your :



awk '/zypper_local/ && /60/ && /$ZYPPER_LOCAL_REP/'with :

awk -vP="$ZYPPER_LOCAL_REP" '/zypper_local/ && /60/ &&($0~P)'


You can also try to get out the...
4,218
Posted By ctsgnb
Maybe you should reverse your initial matrix :...
Maybe you should reverse your initial matrix : ....


$cat my
var_Site,SITE-A1,SITE-A2,SITE-A3,SITE-B1,SITE-B2,SITE-C2,SITE-C3,SITE-C4...
3,140
Posted By ctsgnb
No sure whether or not it will make a difference,...
No sure whether or not it will make a difference, but maybe you can give a try enclosing column name in back tick like `column_name`
2,440
Posted By ctsgnb
Just another way to do the same awk...
Just another way to do the same

awk '/^interface/{i=$0}/helper/{ print ((i!=z)?i RS:z) $0 ; i=z }' yourfile
6,156
Posted By ctsgnb
Did you try something like : [...] .IF...
Did you try something like :

[...]
.IF ACTIVITYCOUNT = 1 THEN .GOTO DROP_TAB;
.GOTO LOG_ME_OFF
.LABEL DROP_TAB;
DROP TABLE ${SCHE_NAME}.${tab_name};
.LABEL LOG_ME_OFF
.LOGOFF
.QUIT; ...
2,900
Posted By ctsgnb
C:\WINDOWS\system32>cat mytst 2018-10-23...
C:\WINDOWS\system32>cat mytst
2018-10-23 12:33:21 AI ERROR -- tpid: SAMPLE_TH account: 123456789 aiSessionNumber: 660640464 mapName: xxx to yyy
errorDesc: Translation Error:ErrorNumber : 993...
2,087
Posted By ctsgnb
Not the most elegant, but for sure one of - if...
Not the most elegant, but for sure one of - if not "The" - most intuitive & easy to read and maintain :


seq 1 20 | sed 's/$/ -/'
4,086
Posted By ctsgnb
You should build a function that do what you...
You should build a function that do what you want.



Then loop over the servers with a "while" or a "for" instruction and call that function.


You should also choose whether you want to hold...
1,691
Posted By ctsgnb
Just a little warning
Just to bring your attention about the fact that Scrutinizer's code assumes that multiples occurrences of a transaction in "spend file/sendfile" must be sequential ... (since the display of computing...
3,666
Posted By ctsgnb
1) The CSV.txt you've posted is in fact your...
1) The CSV.txt you've posted is in fact your sendtodb.csv file, is that correct ?

2) What is the content of your me.csv file ?
12,990
Posted By ctsgnb
Yeah, I agree with you regarding the UUOC one. ...
Yeah, I agree with you regarding the UUOC one.
The test with -- was just bulk try just to see if it would get the -- as an end of options and see how it would handle the rest of the command line.
...
12,990
Posted By ctsgnb
Just for fun playing with subsequent args ......
Just for fun playing with subsequent args ... consider giving a try to:

# for i in $(seq 1 10) ; do echo $(< /dev/urandom tr -dc '[:alnum:],@#:!?+-' | head -c10) ; done
# for i in $(seq 1 10) ;...
12,990
Posted By ctsgnb
$(< file ) and $( cat file )
What is the difference between $(< filename ) and $( cat filename ) ? :rolleyes:
Or should i ask ... are they equivalent ?
3,097
Posted By ctsgnb
Just another idea for fun... set -- $( xargs...
Just another idea for fun...
set -- $( xargs -n2 <yourfile | sed 's/ .*//' | xargs )
echo -e "$7,$8,ZZZZZZ\n$1,$4\n$2,$5\n$3,$6\n"
(to be adapted )
Forum: Red Hat 09-22-2017
4,313
Posted By ctsgnb
Did you use ssh with -X option (or any option...
Did you use ssh with -X option (or any option relating to DISPLAY exporting, depending on your platform & ssh version) ?
Did you enable all corresponding X11 forwarding stuff ?
2,395
Posted By ctsgnb
Please provide an example of representative input...
Please provide an example of representative input file, field, field separator, and by the way, what did you try so far ?
3,044
Posted By ctsgnb
In condition 2c, what are you trying to do : an...
In condition 2c, what are you trying to do : an assignation ( = ) or a comparison ( == ) ?

Also review your whole code : you stilll have a bunch of dollars that shouldn't be there ( f[... rather...
3,044
Posted By ctsgnb
Did you test your script so far ? have you...
Did you test your script so far ? have you performed some "unity testing" to validate one by one that your conditions work as you expect ?

In condition 1 , where does this (see in...
2,495
Posted By ctsgnb
Whatever strategy you choose, according to your...
Whatever strategy you choose, according to your expectation, you will get an output file that is near 5 times bigger than your input file.

input file :
rows = 400k
columns = 3000
Total amount...
6,394
Posted By ctsgnb
If thinking of setting up a broker daemon, you...
If thinking of setting up a broker daemon, you should refer to the corresponding installation guide of the Editors (https://docs.oracle.com/cd/E19587-01/821-0027/aeoca/index.html). (The link provided...
3,714
Posted By ctsgnb
Ok then give a try splitting into short steps...
Ok then give a try splitting into short steps like:

cut -c1-44 FILE1 >f1
cut -c1-20 FILE2 >f2
cut -c45-60 FILE1 >f3
paste -d# f1 f2 f3 | sed 's/#//g' | tee MERGEFILE
rm f?
2,029
Posted By ctsgnb
Hi Corona, Thank for your time but i already...
Hi Corona,

Thank for your time but i already know how do the associativ array works.;)

In fact i was refering and wondering about to the "collating" notation mentionned here...
3,714
Posted By ctsgnb
Man is your friend : man joinman pasteDid you...
Man is your friend :
man joinman pasteDid you try something like :
ksh paste -d# <(cut -c1-44 FILE1 ) <(cut -c1-20 FILE2) <(cut -c45-60 FILE1)Here i have set # as delimiter , choose one which does...
Showing results 1 to 25 of 500

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