Documente Academic
Documente Profesional
Documente Cultură
Contents:
Introduction to UNIX
UNIX Architecture
UNIX Command
The vi editor
• Shell
• Kernal
• Creates a file with new file name and open for editing.
• Use ctrl+d keys to exit edit mode
• Opens an existing file in overriding mode.
• Creates a file with new file name and open for editing.
• Use ctrl+d keys to exit edit mode
• Opens an existing file in appending mode.
Cont..
SREE NIPUNA SOFTWARE SOLUTIONS 23
wc
Cont..
SREE NIPUNA SOFTWARE SOLUTIONS 24
wc
Cont..
SREE NIPUNA SOFTWARE SOLUTIONS 27
uniq
Syntax: uniq <filename>
uniq command remove the duplicates that are sequentially
present in a file.
Cont..
SREE NIPUNA SOFTWARE SOLUTIONS 28
uniq
Cont..
SREE NIPUNA SOFTWARE SOLUTIONS 29
uniq
Cont..
SREE NIPUNA SOFTWARE SOLUTIONS 30
pwd
Syntax: pwd
Permission Values:
1 - Execute
2 - Write
4 - Read
Syntax:
awk 'BEGIN {start_action} {action} END {stop_action}' filename
• Modes of operation
- Command mode
- Insert mode
- The ex command mode
Following commands
Needs to be executed
Output:
if [ $a == $b ]
then
echo "a is equal to b"
fi
if [ $a != $b ]
then
echo "a is not equal to b"
fi
SREE NIPUNA SOFTWARE SOLUTIONS 72
Some Syntaxes
• case...esac
• while command1;
do
Statement(s)
while command2;
do
Statement(s)
done
Statement(s)
done
SREE NIPUNA SOFTWARE SOLUTIONS 73
pmcmd Syntax
#!/usr/bin/bash
pmcmd startworkflow
-sv $INT_SVC
-d $INFA_DOMAIN
-u $INFA_USERID
-p $INFA_PWD
-f $INFA_FOLDER
-w $WORKFLOW_NAME