Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: ctsgnb
1,957
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,997
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...
704
Posted By ctsgnb
awk '/^CLASS/{print $NF}' infile
awk '/^CLASS/{print $NF}' infile
2,348
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,326
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,684
Posted By ctsgnb
see also man ascii man locale man tr# echo...
see also
man ascii
man locale
man tr# echo "0123456789aeiuAEIU" | tr -d [:alnum:]

# echo "0123456789aeiuAEIU" | tr -cd [:alnum:][:space:]
0123456789aeiuAEIU
Also...
1,209
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
1,532
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,027
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,027
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...
3,735
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...
971
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...
1,335
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,377
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) (...
2,962
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'

#...
920
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...
1,987
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...
974
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,447
Posted By ctsgnb
awk -F\| '{f=$NF ".txt"; print $0 >> f;close(f)}'...
awk -F\| '{f=$NF ".txt"; print $0 >> f;close(f)}' yourfile
1,913
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,146
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...
2,539
Posted By ctsgnb
xargs -n1 <yourfile
xargs -n1 <yourfile
5,535
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...
915
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...
1,909
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

 

Featured Tech Videos

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