10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am new to unix shell scripting and I was documenting one of the unix script and encountered below statements -
for ii in `ls -1rt /oracle/admin/MARSCOPY/ext_files/fpm-ifpm/*.small.txt | tail -1 | awk '{print $1}'`
do
smallssim=${ii##/oracle/admin/MARSCOPY/ext_files/fpm-ifpm/}... (2 Replies)
Discussion started by: shuklajayb4
2 Replies
2. UNIX for Dummies Questions & Answers
What would the below code snippet mean?
my ($_configParam, $_paramValue) = split(/\s*=\s*/, $_, 2);
$configParamHash{$_configParam} = $_paramValue; (2 Replies)
Discussion started by: MaKha
2 Replies
3. UNIX for Dummies Questions & Answers
what does this mean?
awk '!a||a>$1 {a=$1} END {for (i in a) print a,i}' file (6 Replies)
Discussion started by: osama ahmed
6 Replies
4. UNIX for Dummies Questions & Answers
Hello Friends,
I am a new learner of Unix & need to understand below script as start up,
Can anyone explain the meaning of each line listed below.
Thanks for your time.
#!/usr/bin/ksh
PARAMS=$1
#echo "parms passed is $PARAMS @"
STATUS=`echo ${PARAMS} | cut -d: -f1`
JOBNAME=`echo... (9 Replies)
Discussion started by: DK2014
9 Replies
5. Linux
Hello. In some script, I saw:
filename=${1:-/etc/hosts}
if && ; then
md5sum $filename
else
echo “$filename can not be processed”
fi
# Show the file if possible
ls -ld $filename 2>/dev/null
What does the first line means? In $filename I still got /etc/hosts. (2 Replies)
Discussion started by: lozicd3
2 Replies
6. Shell Programming and Scripting
Hi,
I would like to ask about the meaning or purpose of set -e in the script bash, Does it mean if a wrong command in the script it will close or exit the script without continuation thats what happen if i set it in the terminal.
Thanks in advance (3 Replies)
Discussion started by: jao_madn
3 Replies
7. Shell Programming and Scripting
All,
I have a line in my code like below , could any one please tell me what this actually mean what is the & doding there.
I am in sh shell
#!/bin/sh
..............
mv &fname &III.tar.gz
Thanks in Advance,
Arun (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
8. UNIX for Dummies Questions & Answers
hello every one i want to know meaning of following line
INST_PARA=$HOME/install/Install.Para
SAVEMEDIUM=`awk '$2=="ArchiveSave"{print$4}' $INST_PARA` (4 Replies)
Discussion started by: kaydream
4 Replies
9. Shell Programming and Scripting
Can anyone explain me the meaning of line #2 in these lines of shell script:
if ; then
${EXPR} " ${MACTIONS
} " : ".* ${ACTION} " >/dev/null 2>&1 || die "$USAGE"
else
Sorry in case this is a trivial thing (I am not an expert in this). (3 Replies)
Discussion started by: radiatejava
3 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
can anyone explain me the meaning of following line
". &13FNAME/version_encours/cfg/dfm.cfg"
Regards (1 Reply)
Discussion started by: scorpio
1 Replies