Search Results

Search: Posts Made By: ctsgnb
2,360
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...
5,243
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...
875
Posted By ctsgnb
awk '/^CLASS/{print $NF}' infile
awk '/^CLASS/{print $NF}' infile
2,893
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 ?
8,038
Posted By ctsgnb
$(< file ) and $( cat file )
What is the difference between $(< filename ) and $( cat filename ) ? :rolleyes:
Or should i ask ... are they equivalent ?
2,220
Posted By ctsgnb
see also man ascii man locale man tr# echo...
see also
man ascii
man locale
man tr# echo "0123456789aàâeéèêëiïîuùûüAÄÂÀEËÊÈIÏÎÌUÛÙÜ" | tr -d [:alnum:]
àâéèêëïîùûüÄÂÀËÊÈÏÎÌÛÙÜ
# echo "0123456789aàâeéèêëiïîuùûüAÄÂÀEËÊÈIÏÎÌUÛÙÜ" | tr -cd [:alnum:][:space:]
0123456789aeiuAEIU
Also...
1,805
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...
Forum: Red Hat 09-22-2017
2,198
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,747
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,747
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...
5,364
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,458
Posted By ctsgnb
Assuming your folders & subfolders only contains...
Assuming your folders & subfolders only contains the files you have to execute
Something like (may need some tweak but for inspiration)
find ./Sanity_test -xdev -type f -a ! -type d | while read...
2,015
Posted By ctsgnb
Sorry but it's unclear. Please give a short and...
Sorry but it's unclear. Please give a short and comprehensive example of what you have, what you want, and what you've tried.
By respect for those who reads you, also take the time to explain the...
1,732
Posted By ctsgnb
Just by replacing any comma with a Field...
Just by replacing any comma with a Field Separator (FS) (here:a space) + last Field of the line ($NF) + Record Separator (RS) (here:line jump) + First field of the line ($1) + Field separator (FS) (...
3,709
Posted By ctsgnb
# cat mytst Name: 'text1:200/text2:1.2.3.4' ...
# cat mytst
Name: 'text1:200/text2:1.2.3.4'
Name2: 'text3:200/text3:1.2.3.17'

# sed 's/[^:]*.$/whatever'"'"'/g' mytst
Name: 'text1:200/text2:whatever'
Name2: 'text3:200/text3:whatever'

#...
1,252
Posted By ctsgnb
xargs -n4 <answer.bed >output.bed # cat...
xargs -n4 <answer.bed >output.bed

# cat /tmp/myt
chr1 957570 957852
NOC2L
chr1 976034 976270
PERM1
chr1 976542 976787
PERM1
# xargs -n4 </tmp/myt
chr1...
2,840
Posted By ctsgnb
Just another idea, take a char which does not...
Just another idea, take a char which does not occur in your file (here for example "µ" ) and use it as a stop mark.
One advantage is that it can be used with string as delimiter.

$ echo...
1,315
Posted By ctsgnb
Maybe it's me, but i don't get the logic of the...
Maybe it's me, but i don't get the logic of the example you gave.
Providing a code sample should not be a reason not to take the time to explain the logic you follow.
That would be nice for the...
1,887
Posted By ctsgnb
awk -F\| '{f=$NF ".txt"; print $0 >> f;close(f)}'...
awk -F\| '{f=$NF ".txt"; print $0 >> f;close(f)}' yourfile
2,542
Posted By ctsgnb
By the way the "done" instruction keyword looks...
By the way the "done" instruction keyword looks missing from the code block

for users in ...
do
....
done
1,392
Posted By ctsgnb
Shooting a big piece of code and waiting for...
Shooting a big piece of code and waiting for people to spend their time to reverse engineer it is not the best way to encourage people to answer.

Please take the time to explain what you have and...
3,350
Posted By ctsgnb
xargs -n1 <yourfile
xargs -n1 <yourfile
6,459
Posted By ctsgnb
Make sure that the environement variables...
Make sure that the environement variables required are setup from within the script you call. (Cron may not preserve some of the environment variables that you need to run your script).

Also you...
1,139
Posted By ctsgnb
I would not recommend this because this solution...
I would not recommend this because this solution :
- do a useless use of cat (UUOC)
- and may lead to duplicate entries since it loops many times on file2.

You have to consider whether it...
2,303
Posted By ctsgnb
You can then go for : sed...
You can then go for :

sed 's!\(...\)\(...\)..!\2\1!' yourfileor (a little more "secure")
sed 's!\(../\)\(../\)..!\2\1!' yourfileNote that when you go from YYYY to YY you loose information and may...
Showing results 1 to 25 of 500

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