Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: bakunin
1,793
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
6,610
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...
1,990
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...
Forum: AIX 07-31-2019
2,689
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....
1,990
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...
1,990
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,150
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
...
645
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,...
2,061
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...
2,322
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...
3,024
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...
2,706
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
1,612
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
11,999
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...
1,763
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...
983
Posted By bakunin
You can use that but be aware that it is NOT...
You can use that but be aware that it is NOT supported by standard-conforming versions of find. If you use it you limit the usability of what you do to systems where the installed find command is the...
1,841
Posted By bakunin
OK, this is a good start. The find utility...
OK, this is a good start. The find utility provides a list of filenames fitting the clauses you specifiy. Here is the principle of how it works. I suggest you try the following commands on the...
4,101
Posted By bakunin
As an AIX SysAdmin for the last ~30 years i can...
As an AIX SysAdmin for the last ~30 years i can tell you: nothing is even "close to AIX". Sorry to say that but to learn AIX you need AIX, nothing else. The best (and cheapest) you may try is to buy...
1,056
Posted By bakunin
That is not the reason at all. In fact you should...
That is not the reason at all. In fact you should read about (POSIX basic) regular expressions, because you obviously don't correctly understand how they work:

The asterisk ("*") makes the...
2,180
Posted By bakunin
First, you should notice that funny things ca...
First, you should notice that funny things ca happen if the content of the file is more than the (probably expected) one line of text. Some caution is advised before you use data in this way...
2,125
Posted By bakunin
In principle you can, but sed uses a lot of...
In principle you can, but sed uses a lot of characters with a special meaning to the shell. Therefore, to protect the shell from reading it, sed-commands are usually enclosed in single-quotes:

sed...
Forum: AIX 06-14-2019
4,329
Posted By bakunin
Look at the quoted output above: the lspv...
Look at the quoted output above: the lspv commands lists not only the disks but also to which VG they belong to. i.e. hdisk7, hdisk8, hdisk9, etc. all belong to the volume group vg_3. The two...
311
Posted By bakunin
You may want to start reading the man page of the...
You may want to start reading the man page of the join command. As i see it it does exactly what you want. Note that join expects both input files to be sorted (in regards to the common key you want...
1,847
Posted By bakunin
This is a so-called "process substitution", where...
This is a so-called "process substitution", where a process (or, rather, its outout) is put into the place of a file. First, there is a diff command:

diff file1 file2

which would list the...
Forum: AIX 06-11-2019
13,995
Posted By bakunin
First off: AIX 5.2 is at least 10 years out of...
First off: AIX 5.2 is at least 10 years out of support, the support for its successor 5.3 ended 2012. The support for some Power5 systems (if they have been upgraded with Power6- and...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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