Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: ctsgnb
3,071
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-
...
4,161
Posted By ctsgnb
tr '\n' ' ' <( echo $str ) or echo $str | tr...
tr '\n' ' ' <( echo $str )
or
echo $str | tr '\n' ' '
4,008
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...
1,959
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...
908
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`
896
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
3,170
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; ...
1,137
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...
783
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/$/ -/'
1,739
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...
556
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...
2,354
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 ?
1,331
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.
...
1,331
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) ;...
1,331
Posted By ctsgnb
$(< file ) and $( cat file )
What is the difference between $(< filename ) and $( cat filename ) ? :rolleyes:
Or should i ask ... are they equivalent ?
1,460
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
1,539
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 ?
1,060
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 ?
1,030
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...
1,030
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...
1,213
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...
3,740
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...
1,186
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?
931
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...
1,186
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

 

Featured Tech Videos

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