Evaluate 2 columns, add sum IF two columns satisfy the condition
HI All, I'm embedding SQL query in Script which gives following output: Code: Assignee Group Total ABC Group1 17 PQR Group2 5 PQR Group3 6 XYZ Group1 10 XYZ Group3 5 I have saved the above output in a...
View ArticleHelp with filter result (scientific notation) by using awk
Input file: Code: data1 0.05 data2 1e-14 data1 1e-330 data2 1e-14 data5 2e-60 data5 2e-150 data1 4e-9 Desired output: Code: data2 1e-14 data1 1e-330 data2 1e-14 data5 2e-60 data5 2e-150 I would like to...
View ArticleFile name manipulation when extracting from gzip
Hi, Below is the description of my problem. I am trying to loop through the below file names sitting in the file - FileNames.txt, and trying to decompress them FileNames.txt Code:...
View ArticleBackingup larger files with TAR command
I need to backup my database but the files are very large and the TAR command will not let me. I searched aids and found that I could do something with the mknod, COMPRESS and TAR command using them...
View ArticleVSwitch not showing up on VIO Server
Want to run this by you all before opening a PMR with IBM Support. It's been a few weeks since I have done this so I can't be 100% sure of how I think it worked in the previous version. We upgraded our...
View Articleawk script to parse case with information in two fields of file
The below awk parser works for most data inputs, but I am having trouble with the last one. The problem is in the below rules steps 1 and 2 come from $2 (NC_000013.10:g.20763686_20763687delinsA) and...
View ArticleGrep with regex containing one string but not the other
Hi to you all, I'm just struggling with a regex problem and I'm pretty sure that I'm missing sth obvious... :confused: I need a regex to feed my grep in order to find lines that contain one string but...
View ArticleRedHat Cluster: Nodes won't see each other
Hi All; I try to build a Redhat Cluster (CentOS 6) on vmware. But each node sees the other down like: Code: [root@node1 ~]# clustat Cluster Status for mycluster @ Wed Apr 8 11:01:38 2015 Member...
View ArticleSolaris mapping users/groups to AD - is the following possible?
Hey all, I have been beating my head against this for a couple weeks now - done a lot of research, etc. - but just cannot seem to get a resolution. If someone could point me in the right direction, I...
View ArticleUbuntu Server 14.04 LTS - domain controller configuration (SAMBA)
Hello! Never configured a Linux server from a scratch. Reviewed the official documentation and dozens of different "how to", but now one of them helped me to solve the issue. The need: Quote: 1. Ubuntu...
View ArticleRedHat Cluster: Nodes won't see each other
Hi All; I try to build a Redhat Cluster (CentOS 6) on vmware. But each node sees the other down like: Code: [root@node1 ~]# clustat Cluster Status for mycluster @ Wed Apr 8 11:01:38 2015 Member...
View ArticleRewrite sed to perl or run sed in perl
I am having trouble re-writing this sed code Code: sed -nr 's/.*del([A-Z]+)ins([A-Z]+).*NC_0{4}([0-9]+).*g\.([0-9]+)_([0-9]+).*/\3\t\4\t\5\t\1\t\2/p' C:/Users/cmccabe/Desktop/Python27/out_position.txt...
View ArticleUsing sed to delete one regluar pattern with conditions
Hi All , I am having a file like this INPUT FILE ############################### Code: addfd_mjlala kksks sksks ks annsns_bbox_2 (sksksk ksks ) adnndn_nsns_bbox_3 (( jsjsdj sjsj ) malm_dkdm lsls lsl...
View ArticleProblems with single quotes included in shell script
Hi, I have the below small code sample which is giving problem during the run. Running this script as ./test2.sh "149287,110018" Code: #!/bin/bash LSF_DEPENDENCY=$1 if [ ${LSF_DEPENDENCY} ] ; then...
View ArticleLdom clone from production system
Hi! I am quite new to Solaris and come from AIX world. I need to clone running production LDOM. In AIX you just take mksysb and restore it to new LPAR. It will install with blank network settings. How...
View ArticleHow to maintain a personal password file 'safely'?
Hi all, As time progresses, the number of servers that I have to login to has grown to the hundreds. Some of the servers has NIS so I can use one single password for this group of servers. The hard...
View ArticlePerl script module
I took the copy of the production module to the home directory and executing the module. one of the test prdmsk.pm module is present in the home directory ctskk. would like to know whether the below...
View ArticleCp not working in shell script but running perfectly from shell
Dear All, I have script. Code: Dest="" IFS=' ' for translation in $(echo $MY_MAP) do t1=$(echo $translation | cut -d"=" -f1) t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1) if [...
View ArticleDifferentiate 2 files name
Hello All, I have 2 Type of files. Code: 1. MYTEST001_RKP_DORALDO_20150402120000.zip 2. CMP001_STD001_MOGANO_RPSL_20150409_C.zip I can receive these Two type of file at one location. If i receive...
View ArticleHow to use a loop for multiple files in a folder to run awk command?
Dear folks I have two data set which there names are "final.map" and "1.geno" and look like this structures: final.map: Code: gi|358485511|ref|NC_006088.3| 2044 gi|358485511|ref|NC_006088.3| 2048...
View Article