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)
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)
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)
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)
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)
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)
What would the below code snippet mean?
my ($_configParam, $_paramValue) = split(/\s*=\s*/, $_, 2);
$configParamHash{$_configParam} = $_paramValue; (2 Replies)
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)