10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
here is the code:
scripts]# ls /etc/init.d/ | awk 'BEGIN{ORS=" && "} /was.init/ && !/interdependentwas/ && !/NodeAgent/ && !/dmgr/{print "\$\{service_cmd\} "$0 " status"}' 2>/dev/null
${service_cmd} cmserver_was.init status && ${service_cmd} fmserver_was.init status &&... (6 Replies)
Discussion started by: chandana.hs
6 Replies
2. Shell Programming and Scripting
Hello,
I am trying to filter fastq file (in short, every 4 lines to be a record) based on the GC counts (GC-contents) in sequence (i.e. field 2), which is the count % of the G/C chars in the string. The example script is to pick up records with GC contents > 0.6 in the sequence (second field). ... (9 Replies)
Discussion started by: yifangt
9 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a very wide dataset with pairs of columns starting from column 7 onwards (see example below).
0 123456 -1 0 0 -9 0 0 1 2 2 2 1 1 1 1 2 2...
0 123457 -1 0 0 -9 1 2 1 1 2 2 0 0 0 0 2 2...
0 123458 -1 0 0 -9 0 0 1 2 2 2 1 1 2 2 1 2...
0 123459 -1 0 0 -9 1 2 0 0 2 2 1 1 1 2 1 1...... (2 Replies)
Discussion started by: kasan0
2 Replies
4. Shell Programming and Scripting
Hi Guys,
Please help me, I am new to programming and I don’t understand what some parts of this code are doing. I have comments on the parts I know, please help if my understanding of the code is not correct and also help with parts with questions.
awk '
{
gsub( ">",... (1 Reply)
Discussion started by: James_Owen
1 Replies
5. Programming
Hi,
I'm working on INFORMIX4GL, i'm just trying to find out the missing indexes in my db.
I think SET EXPLAIN ON would give me some hint on this
Do anyone know how to use this?
Thanks (1 Reply)
Discussion started by: dvah
1 Replies
6. Shell Programming and Scripting
Hi,
Pls explain me what the below code is doing. specially meaning if -a while calling test function-
case $1 in
1) beg_dt=01; end_dt=07 ;;
2) beg_dt=08; end_dt=14 ;;
3) beg_dt=15; end_dt=21 ;;
4) beg_dt=22; end_dt=28 ;;
5) beg_dt=29; end_dt=31 ;;
esac test \( `date +%w` -eq $2 -a... (3 Replies)
Discussion started by: sendtoshailesh
3 Replies
7. Shell Programming and Scripting
ccc_con,CCC_CON,0
Above is the input for this code
#!/usr/bin/bash
my_path=`dirname $0`
T_table=$1
S_table=$2
P_table=$3
#Star new code
while read ${my_path}/arch_table_list.txt
{
awk -F "," '{print $1}' ${my_path}/arch_table_list.txt ${S_table}
awk -F "," '{print... (1 Reply)
Discussion started by: scorp_rahul23
1 Replies
8. UNIX for Advanced & Expert Users
Hi ,
Can anyone explains what does the below highlighted statements means:
# Set environment variables
. ${0%/*}/wrkenv.sh
jobName_sh=${0##*/}
jobName=${jobName_sh%.*}
Thanks,
Sri (1 Reply)
Discussion started by: srilaxmi
1 Replies
9. Shell Programming and Scripting
:D dear members I have a good knowledge of gawk and seem to do quite well with it.. but I have never understood what the use of the rs and ors are for or how they are used.. i am thinking they are for seperating lines and paragraphs but i have absolutely no idea how to make it work, if that is what... (2 Replies)
Discussion started by: moxxx68
2 Replies
10. UNIX for Dummies Questions & Answers
hey peeps
could someone explain what this part of the code means:
'if echo $* | grep -q' $i '||
thanks
tHe_nEw_GuY (2 Replies)
Discussion started by: the_new_guy
2 Replies