文章列表
使用Page Viewer将Page A的内容显示到Page B上, 并且隐藏Page A的Rebin Bar and Suitbar可以这样做:
WebPart -> Media and Content-> Page Viewer
1, 在Page A使用script editor:
<script src="jquery-3.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
_ ...
special variable:$#, $$, $@, $*, $0, $?
1, $#
The number of arguments supplied to a script.
eg:
if [ "$#" -eq 0 ]; then
echo "you did not pass any parameter"
fi
echo "Total Number of Parameters : $#"
Total Number of Parameters : 2
2, $$
The process number of the cu ...
Difference between ${} and $()
1, $(command) is “command substitution”. it runs the command, captures its output, and inserts that into the command line that contains the $(…);
eg:
$ ls -ld $(date +%B).txt
-rwxr-xr-x 1 Noob Noob 867 Jul 2 11:09 July.txt
$ echo $(date)
Thu Jul 2 16:33:11 ...
Variable: define and usage: difference between $NAME and ${NAME}
1, Define:
NAME="Zara Ali"
2, Use:
Input below in test.ksh
NAME="Zara Ali"
AGE=13
echo $NAME
$ Zara Ali
#use ${NAME} can apend strings and other variable
echo ${NAME}_IS
$ Zara Ali_IS
echo ${NAME}${A ...
touch exeSendMail.ksh
touch eg.txt
1, eg.txt content:
hello world!
2, write in exeSendMail.ksh
Send mail
(
echo "From: SANT<SANT@gmail.com>";
echo "To: bonnie.tang@gmail.com";
echo "Subject: send email";
cat eg.txt
)| /usr/ ...
1, if...else..
if[]; then
else
fi
2, if...else if...
if[]; then
esif[]; then
else
fi
3, if...
if[]; then
fi