Thanks for the detail explanation. This does help me in understanding.
Actually we are migrating our projects from unix server to windows 2008 server, so there are few scripts which are written in unix shell which needs to be converted to Powershell compatible to windows 2008.
So first i need to understand the unix shell script & then convert it to powershell.
Any suggestions as what will be the best approach to do this.
Few more points if you can help,
1) In below 3 lines, what is the meaning of "cut -d: -f1", i mean what does "cut" do, what does "-d:" do & similarly what does "-f1" do.
similarly what does "-f2", "-f3" do.
Is there any online link or PDF file where I can find the meaning of below,
1) cut
2) -d
3) -f
4) -d~
5) echo
6) exit
7) when to use {}
8) whats use of $
9) -z
10) -s
11) ls
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 all,
I want to be able to create a script on the fly from another script by echoing lines into a file, but am running into difficulty, as it isn't working right. What am I doing wrong?
echo "for i in `grep $FRAME /root_home/powermt.sort.fil |awk '{print $7}'`" > pvtimout_set.sh... (5 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)
This may be little confusing. I have Script1, which pulls data from the system and creates another script(lets say script2). While I run script1 I need to add printf/echo statements for script2, so that when I run script2 I see those statement.
eg: script1 765
printf " display frame-$1 timeoffset... (2 Replies)
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)
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)
Please let me understand the meaning of following line in unix bash scripting .is =~ means not equal to or equal to .
if ]; then
echo -e "pmcmd startworkflow -sv ${INTSERV} -d ${INFA_DEFAULT_DOMAIN} -uv INFA_DEFAULT_DOMAIN_USER" \
"-pv INFA_DEFAULT_DOMAIN_PASSWORD -usdv... (2 Replies)