10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
#!/bin/ksh
log=ABCl
log=EFG
log=HIJ
i=0
while <------ what is the meaning of ($i - lt 3)
do
print ${log}
(( i=i+1 ))
done (1 Reply)
Discussion started by: Bperl1967
1 Replies
2. 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
3. Shell Programming and Scripting
Hi,
Can anyone pls explain me the below SED code in detail.
sed -e :a -e '$!N;s/\n//;ta' -e P -e D
When this code is executed with a file(has 1lac records), it is taking very long time to process.
So I wanted to modify this SED code with equivalant AWK code.
Thanks,
Sri (1 Reply)
Discussion started by: srilaxmi
1 Replies
4. Shell Programming and Scripting
while getopts :g:l:h: KEY $*
do
case $KEY
in
g) NAME=$OPTARG ;;
l) LAB=$OPTARG ;;
h) HD=$OPTARG ;;
*) echo "Illegal option: $OPTARG"
echo "$usage"
exitStatus=1
exitGrace
esac
done (2 Replies)
Discussion started by: santosh1234
2 Replies
5. Shell Programming and Scripting
#! /bin/sed -nf
# Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com)
# Sped up (and bugfixed to some extent) by Paolo Bonzini (bonzini@gnu.org)
# Works its way through the line, copying to hold space the text up to the
# first special character (/, ", '). The original... (1 Reply)
Discussion started by: Priyaranjan
1 Replies
6. 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
7. 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
8. Solaris
if
then
ROLLBACK=1 ;
elif
then
echo "Nothing to install!" ;
echo "Exiting." ;
exit 0;
Plz explaing what is the ${1:-0} in if loop?:) (3 Replies)
Discussion started by: ysrikanth
3 Replies
9. Shell Programming and Scripting
currentSid=${TWO_TASK:-$ORACLE_SID}
echo $currentSid
this script returns value of ORACLE_SID but what i am not getting is
what is ":-" doing ?? (1 Reply)
Discussion started by: zedex
1 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