summaryrefslogtreecommitdiff
path: root/1088/CH4/EX4.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1088/CH4/EX4.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1088/CH4/EX4.1')
-rwxr-xr-x1088/CH4/EX4.1/Example1.sce24
-rwxr-xr-x1088/CH4/EX4.1/Result1.pdf54
-rwxr-xr-x1088/CH4/EX4.1/Result1.txt54
3 files changed, 132 insertions, 0 deletions
diff --git a/1088/CH4/EX4.1/Example1.sce b/1088/CH4/EX4.1/Example1.sce
new file mode 100755
index 000000000..ba80abb08
--- /dev/null
+++ b/1088/CH4/EX4.1/Example1.sce
@@ -0,0 +1,24 @@
+mode(-1)
+clear
+clc
+
+disp("Example 1 : Show the path of the home directory of the file system")
+disp("****************************************************************")
+disp("Answer : ")
+disp("INSTRUCTIONS : ")
+printf("\nHere all instructions are preloaded in the form of a demo\nPRESS ENTER AFTER EACH COMMAND to see its RESULT\nPRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND\n")
+halt('.............Press [ENTER] to continue.....')
+halt("")
+clc
+printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n")
+printf("\n\n$ echo $HOME #To get the value of the home directory\n\n")
+halt("........# (hit [ENTER] for result)")
+clc(1)
+printf(" %s \n",home)
+halt("........# (hit [ENTER] for next instruction)")
+printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n")
+halt("........# (hit [ENTER] for result)")
+//clc()
+printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment')
+sleep(1000)
+
diff --git a/1088/CH4/EX4.1/Result1.pdf b/1088/CH4/EX4.1/Result1.pdf
new file mode 100755
index 000000000..b2fdbe7a2
--- /dev/null
+++ b/1088/CH4/EX4.1/Result1.pdf
@@ -0,0 +1,54 @@
+ ans =
+
+ 1.
+
+-->exec('Example1.sci',-1)
+Current date is 02-Jun-2013
+
+Welcome to the Textbook Companionship Project 2013
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Book Title : UNIX CONCEPTS AND APPLICATIONS
+
+ Book Edition : 4
+
+ Book Author : Sumitabha Das
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Code Author : Pranav Bhat T
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Chapter Number : 4
+
+ Chapter Title : THE FILE SYSTEM
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Example 1 : Show the path of the home directory of the file system
+
+ ****************************************************************
+
+ Answer :
+
+ INSTRUCTIONS :
+
+Here all instructions are preloaded in the form of a demo
+PRESS ENTER AFTER EACH COMMAND to see its RESULT
+PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND
+.............Press [ENTER] to continue..... UNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)
+
+
+
+
+$ echo $HOME #To get the value of the home directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat
+........# (hit [ENTER] for next instruction)
+
+
+$ exit #To exit the current simulation terminal and return to Scilab console
+
+........# (hit [ENTER] for result)
+
+ BACK TO SCILAB CONSOLE...
+Loading initial environment
+-->diary(0)
diff --git a/1088/CH4/EX4.1/Result1.txt b/1088/CH4/EX4.1/Result1.txt
new file mode 100755
index 000000000..b2fdbe7a2
--- /dev/null
+++ b/1088/CH4/EX4.1/Result1.txt
@@ -0,0 +1,54 @@
+ ans =
+
+ 1.
+
+-->exec('Example1.sci',-1)
+Current date is 02-Jun-2013
+
+Welcome to the Textbook Companionship Project 2013
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Book Title : UNIX CONCEPTS AND APPLICATIONS
+
+ Book Edition : 4
+
+ Book Author : Sumitabha Das
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Code Author : Pranav Bhat T
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Chapter Number : 4
+
+ Chapter Title : THE FILE SYSTEM
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Example 1 : Show the path of the home directory of the file system
+
+ ****************************************************************
+
+ Answer :
+
+ INSTRUCTIONS :
+
+Here all instructions are preloaded in the form of a demo
+PRESS ENTER AFTER EACH COMMAND to see its RESULT
+PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND
+.............Press [ENTER] to continue..... UNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)
+
+
+
+
+$ echo $HOME #To get the value of the home directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat
+........# (hit [ENTER] for next instruction)
+
+
+$ exit #To exit the current simulation terminal and return to Scilab console
+
+........# (hit [ENTER] for result)
+
+ BACK TO SCILAB CONSOLE...
+Loading initial environment
+-->diary(0)