Search Results

Search: Posts Made By: bakunin
3,700
Posted By bakunin
If you want to make sure there is only one value...
If you want to make sure there is only one value printed (like a implicit |uniq) you need to quit after the first match:

sed -n '/^Rows:/ {;s/^Rows:[^0-9]*\([0-9][0-9]*\).*/\1/p;q;}'

This will...
Forum: Fedora 08-05-2019
8,196
Posted By bakunin
There are a few restrictions in place you may...
There are a few restrictions in place you may want to know about:

Using the DOS partitioning schema allows only for 4 (primary) partitions. It is possible to create extended partitions but i...
15,556
Posted By bakunin
moved to Windows subforum bakunin
moved to Windows subforum

bakunin
4,177
Posted By bakunin
I will continue with this requirement: if i...
I will continue with this requirement: if i understand you correctly you want to count all the occurrences of the sequence in each gene, like this (the numbers are made up):

gene1: 37
gene2: 21...
7,555
Posted By bakunin
You are right. I have edited the code above. ...
You are right. I have edited the code above.

bakunin
Forum: OS X (Apple) 07-31-2019
22,426
Posted By bakunin
You may want to read this little treatise...
You may want to read this little treatise (https://www.unix.com/tips-and-tutorials/198879-how-manage-file-names-special-characters.html).

I hope this helps.

bakunin
Forum: AIX 07-31-2019
5,400
Posted By bakunin
It is not clear if the error comes from the host...
It is not clear if the error comes from the host LPAR or the workload partition and you will have to investigate this first. It might be that the WPAR mksysb is faulty and missing something vital....
7,555
Posted By bakunin
This is especially for you: #! /bin/bash ...
This is especially for you:

#! /bin/bash

pInitPermStor ()
{
if [ ! -d "$fStorage" ] ; then
return $(mkdir -p "$fStorage") # create storage dir if not there
fi

return $(rm...
4,177
Posted By bakunin
Fair enough, no problem. You are welcome. ...
Fair enough, no problem. You are welcome.



So, that is a start. Let us go over it. Notice that i will address some general points about script development which may not help you for this script...
4,177
Posted By bakunin
Here we go again analysing FASTA-files. I wonder...
Here we go again analysing FASTA-files. I wonder if we are going to be mentioned in the dozens of biological research papers we have helped to create over time.



Sorry, but this is not the way...
1,667
Posted By bakunin
No! It means that the authentication is done in...
No! It means that the authentication is done in this direction.

Consider it this way: if you give someone the key to your house he has access to it. That could mean he takes away something or...
7,555
Posted By bakunin
As Ravinder has already said it is because of the...
As Ravinder has already said it is because of the pipeline. Basically in classical Bourne Shell (and its descendants, bash - Bourne Again Shell - among them) code like this:

process1 | process2
...
3,283
Posted By bakunin
Yes, that is another possible solution. A problem...
Yes, that is another possible solution. A problem could be that users put things in their homedir crontab and so some files get regularly accessed even if the accounts are deleted. If this or my...
1,667
Posted By bakunin
Yes, it is possible and yes, such a public key is...
Yes, it is possible and yes, such a public key is valid for scp-, sftp- and ssh-connections. I don't know if jdbc can use the same key, however.

scp, ssh and sftp all share the same protocol (SSL,...
4,555
Posted By bakunin
In this case you need to define what your problem...
In this case you need to define what your problem is in a more succinct way.

You defined your problem in the title as "Combine first two words ( country name ) into one word in every line".
...
3,283
Posted By bakunin
[Tip] Housekeeping Tasks Made Easy - User Home directories and Leftover Files
We have regularly questions about how to create users and user accounts. But regularly user accounts need to be deleted too. It is quite easy to delete the user account itself but usually the HOME...
13,844
Posted By bakunin
First off: AIX is not a "distro" it is its own...
First off: AIX is not a "distro" it is its own UNIX, with its own kernel, etc.. This is NOT "some other kind of Linux", it is not Linux at all. Notice that AIX uses a Korn Shell as its native shell....
7,297
Posted By bakunin
A "mail" is basically a (raw) text document, like...
A "mail" is basically a (raw) text document, like an ASCII file. You cannot "format" it with markup.

There is the MIME standard that allows mail to contain (several) parts which are not text. This...
4,555
Posted By bakunin
Depending on how (and by what) you further...
Depending on how (and by what) you further process your data you can also do it in shell directly instead of calling awk for only that purpose:



while read f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11...
6,987
Posted By bakunin
I have seen a lot of bash < /some/script lately....
I have seen a lot of bash < /some/script lately. It seems to be a new Linux habit. In such a case the script is input and may not be displayed in a ps-output.

I hope this helps.

bakunin
2,662
Posted By bakunin
Only recently i learned that NMON is available...
Only recently i learned that NMON is available for Linux too (i used to use it on AIX systems only). It has an interactive mode but also a daemon mode and its output can be analysed with the "NMON...
Forum: AIX 07-23-2019
15,168
Posted By bakunin
Basically you have three types of memory in an...
Basically you have three types of memory in an AIX system: "used" and "unused" and the "used" category divides into two parts: "computational" and "file" memory.

"unused" is memory the kernel has...
4,855
Posted By bakunin
Neither UNIX nor Linux is written in C# - not...
Neither UNIX nor Linux is written in C# - not even in small portions. Mostly, because C# is basically a Windows invention and interlinked with the ".net" environment. The UNIX and the Linux kernel is...
3,099
Posted By bakunin
Its my pleasure: let us first start with: ...
Its my pleasure: let us first start with:


getline()
{
[...]
retcd=0
return $retcd;
exit $retcd
[...]
}

These lines (the same construct is used several times) do not make any sense:...
Forum: What is on Your Mind? 07-10-2019
8,006
Posted By bakunin
I think the problem with this is: a computer is...
I think the problem with this is: a computer is worthless without programs. Back then, when the C64 was a gaming staple (and lets be honest - this was what sold millions of them) there were programs...
Showing results 1 to 25 of 500

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