diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1088/CH4 | |
download | Scilab-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')
-rwxr-xr-x | 1088/CH4/EX4.1/Example1.sce | 24 | ||||
-rwxr-xr-x | 1088/CH4/EX4.1/Result1.pdf | 54 | ||||
-rwxr-xr-x | 1088/CH4/EX4.1/Result1.txt | 54 | ||||
-rwxr-xr-x | 1088/CH4/EX4.2/Example2.sce | 27 | ||||
-rwxr-xr-x | 1088/CH4/EX4.2/Result2.pdf | 55 | ||||
-rwxr-xr-x | 1088/CH4/EX4.2/Result2.txt | 55 | ||||
-rwxr-xr-x | 1088/CH4/EX4.3/Example3.sce | 41 | ||||
-rwxr-xr-x | 1088/CH4/EX4.3/Result3.pdf | 64 | ||||
-rwxr-xr-x | 1088/CH4/EX4.3/Result3.txt | 64 | ||||
-rwxr-xr-x | 1088/CH4/EX4.4/Example4.sce | 41 | ||||
-rwxr-xr-x | 1088/CH4/EX4.4/Result4.pdf | 64 | ||||
-rwxr-xr-x | 1088/CH4/EX4.4/Result4.txt | 64 | ||||
-rwxr-xr-x | 1088/CH4/EX4.5/Example5.sce | 61 | ||||
-rwxr-xr-x | 1088/CH4/EX4.5/Result5.pdf | 82 | ||||
-rwxr-xr-x | 1088/CH4/EX4.5/Result5.txt | 82 | ||||
-rwxr-xr-x | 1088/CH4/EX4.6/Example6.sce | 42 | ||||
-rwxr-xr-x | 1088/CH4/EX4.6/Result6.pdf | 65 | ||||
-rwxr-xr-x | 1088/CH4/EX4.6/Result6.txt | 65 | ||||
-rwxr-xr-x | 1088/CH4/EX4.7/Example7.sce | 31 | ||||
-rwxr-xr-x | 1088/CH4/EX4.7/Result7.pdf | 233 | ||||
-rwxr-xr-x | 1088/CH4/EX4.7/Result7.txt | 233 |
21 files changed, 1501 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)
diff --git a/1088/CH4/EX4.2/Example2.sce b/1088/CH4/EX4.2/Example2.sce new file mode 100755 index 000000000..b62e18023 --- /dev/null +++ b/1088/CH4/EX4.2/Example2.sce @@ -0,0 +1,27 @@ +mode(-1) +clear + +pwd +xt=ans +clc + +disp("Example 1 : Show the path of the current working directory") +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$ pwd #To get the value of the home directory\n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +printf(" %s \n",xt) +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.2/Result2.pdf b/1088/CH4/EX4.2/Result2.pdf new file mode 100755 index 000000000..0718e3865 --- /dev/null +++ b/1088/CH4/EX4.2/Result2.pdf @@ -0,0 +1,55 @@ + ans =
+
+ 1.
+
+-->exec('Example2.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 current working directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ pwd #To get the value of the home directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (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.2/Result2.txt b/1088/CH4/EX4.2/Result2.txt new file mode 100755 index 000000000..0718e3865 --- /dev/null +++ b/1088/CH4/EX4.2/Result2.txt @@ -0,0 +1,55 @@ + ans =
+
+ 1.
+
+-->exec('Example2.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 current working directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ pwd #To get the value of the home directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (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.3/Example3.sce b/1088/CH4/EX4.3/Example3.sce new file mode 100755 index 000000000..fa0812214 --- /dev/null +++ b/1088/CH4/EX4.3/Example3.sce @@ -0,0 +1,41 @@ +clear +pwd +cwd=ans +mode(-1) +clc + +printf("Example 3 : Show the use of cd by going to the home directory \n") +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$ pwd #To get the value of the current directory\n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +printf(" %s \n",cwd) +halt("........# (hit [ENTER] for next instruction)") + +printf("\n\n\n$ cd #To go to the home directory\n\n") +halt("........# (hit [ENTER] for next instruction)") +clc(1) + +printf("\n\n\n$ pwd \n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +cd +xt=ans +printf(" %s \n",xt) +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)") +cd(cwd) +//clc() + +printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') +sleep(1000) diff --git a/1088/CH4/EX4.3/Result3.pdf b/1088/CH4/EX4.3/Result3.pdf new file mode 100755 index 000000000..0803784ba --- /dev/null +++ b/1088/CH4/EX4.3/Result3.pdf @@ -0,0 +1,64 @@ + ans =
+
+ 1.
+
+-->exec('Example3.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 3 : Show the use of cd by going to the home directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ pwd #To get the value of the current directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (hit [ENTER] for next instruction)
+
+
+$ cd #To go to the home directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (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.3/Result3.txt b/1088/CH4/EX4.3/Result3.txt new file mode 100755 index 000000000..0803784ba --- /dev/null +++ b/1088/CH4/EX4.3/Result3.txt @@ -0,0 +1,64 @@ + ans =
+
+ 1.
+
+-->exec('Example3.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 3 : Show the use of cd by going to the home directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ pwd #To get the value of the current directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (hit [ENTER] for next instruction)
+
+
+$ cd #To go to the home directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (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.4/Example4.sce b/1088/CH4/EX4.4/Example4.sce new file mode 100755 index 000000000..2cd948581 --- /dev/null +++ b/1088/CH4/EX4.4/Example4.sce @@ -0,0 +1,41 @@ +clear +mode(-1) +rmdir('pis') +pwd +cwd=ans +clc + +printf("Example 4 : Show the method of creating a directory named pis \n \t\tand surf to the same directory \n") +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$ mkdir pis #To make a directory named pis\n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +mkdir('pis') + +printf("\n\n\n$ cd pis #To go to the current directory\n\n") +halt("........# (hit [ENTER] for next instruction)") +clc(1) +cd 'pis' +xt=ans + +printf("\n\n\n$ pwd \n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +printf(" %s \n",xt) +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)") +cd(cwd) +//clc() + +printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') +sleep(1000) diff --git a/1088/CH4/EX4.4/Result4.pdf b/1088/CH4/EX4.4/Result4.pdf new file mode 100755 index 000000000..849fdc54a --- /dev/null +++ b/1088/CH4/EX4.4/Result4.pdf @@ -0,0 +1,64 @@ + ans =
+
+ 1.
+
+-->exec('Example4.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 4 : Show the method of creating a directory named pis
+ and surf to the same directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ mkdir pis #To make a directory named pis
+
+........# (hit [ENTER] for result)
+
+
+$ cd pis #To go to the current directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4\pis
+........# (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.4/Result4.txt b/1088/CH4/EX4.4/Result4.txt new file mode 100755 index 000000000..849fdc54a --- /dev/null +++ b/1088/CH4/EX4.4/Result4.txt @@ -0,0 +1,64 @@ + ans =
+
+ 1.
+
+-->exec('Example4.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 4 : Show the method of creating a directory named pis
+ and surf to the same directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ mkdir pis #To make a directory named pis
+
+........# (hit [ENTER] for result)
+
+
+$ cd pis #To go to the current directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4\pis
+........# (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.5/Example5.sce b/1088/CH4/EX4.5/Example5.sce new file mode 100755 index 000000000..c172b80d7 --- /dev/null +++ b/1088/CH4/EX4.5/Example5.sce @@ -0,0 +1,61 @@ +clear +mode(-1) +rmdir('pis') +pwd +cwd=ans +clc + +printf("Example 5 : Show the method of removing a directory\n named pis(after creating a directory named pis) \n \t\tand surf to the same directory \n") +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$ mkdir pis #To make a directory named pis\n\n") +halt("........# (hit [ENTER] )") +clc(1) +mkdir('pis') + +printf("\n\n\n$ cd pis;pwd #To go to the directory named pis and open it\n\n") +halt("........# (hit [ENTER] )") +clc(1) +cd 'pis' +xt=ans +printf(" %s \n",xt) +halt("........# (hit [ENTER] )") + +printf("\n\n\n$ cd .. #To go to the parent directory\n\n") +halt("........# (hit [ENTER] )") +clc(1) +cd(cwd) +xt=ans + +printf("\n\n\n$ pwd \n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +printf(" %s \n",xt) +halt("........# (hit [ENTER] for next instruction)") + + +printf("\n\n\n$ rmdir pis #To make a directory named pis \n\n") +halt("........# (hit [ENTER] )") +clc(1) +rmdir pis + +printf("\n\n\n$ ls pis #To go to the current directory\n\n") +halt("........# (hit [ENTER] )") +clc(1) +ls pis +printf(" pis : No such file or directory \n ") + +printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n") +halt("........# (hit [ENTER] )") +cd(cwd) +//clc() + +printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') +sleep(1000) diff --git a/1088/CH4/EX4.5/Result5.pdf b/1088/CH4/EX4.5/Result5.pdf new file mode 100755 index 000000000..794cbc50d --- /dev/null +++ b/1088/CH4/EX4.5/Result5.pdf @@ -0,0 +1,82 @@ + ans =
+
+ 1.
+
+-->exec('Example5.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 5 : Show the method of removing a directory
+ named pis(after creating a directory named pis)
+ and surf to the same directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ mkdir pis #To make a directory named pis
+
+........# (hit [ENTER] )
+
+
+$ cd pis;pwd #To go to the directory named pis and open it
+
+........# (hit [ENTER] ) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4\pis
+........# (hit [ENTER] )
+
+
+$ cd .. #To go to the parent directory
+
+........# (hit [ENTER] )
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (hit [ENTER] for next instruction)
+
+
+$ rmdir pis #To make a directory named pis
+
+........# (hit [ENTER] )
+
+
+$ ls pis #To go to the current directory
+
+........# (hit [ENTER] ) pis : No such file or directory
+
+
+
+$ exit #To exit the current simulation terminal and return to Scilab console
+
+........# (hit [ENTER] )
+
+ BACK TO SCILAB CONSOLE...
+Loading initial environment
+-->diary(0)
diff --git a/1088/CH4/EX4.5/Result5.txt b/1088/CH4/EX4.5/Result5.txt new file mode 100755 index 000000000..794cbc50d --- /dev/null +++ b/1088/CH4/EX4.5/Result5.txt @@ -0,0 +1,82 @@ + ans =
+
+ 1.
+
+-->exec('Example5.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 5 : Show the method of removing a directory
+ named pis(after creating a directory named pis)
+ and surf to the same directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ mkdir pis #To make a directory named pis
+
+........# (hit [ENTER] )
+
+
+$ cd pis;pwd #To go to the directory named pis and open it
+
+........# (hit [ENTER] ) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4\pis
+........# (hit [ENTER] )
+
+
+$ cd .. #To go to the parent directory
+
+........# (hit [ENTER] )
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (hit [ENTER] for next instruction)
+
+
+$ rmdir pis #To make a directory named pis
+
+........# (hit [ENTER] )
+
+
+$ ls pis #To go to the current directory
+
+........# (hit [ENTER] ) pis : No such file or directory
+
+
+
+$ exit #To exit the current simulation terminal and return to Scilab console
+
+........# (hit [ENTER] )
+
+ BACK TO SCILAB CONSOLE...
+Loading initial environment
+-->diary(0)
diff --git a/1088/CH4/EX4.6/Example6.sce b/1088/CH4/EX4.6/Example6.sce new file mode 100755 index 000000000..2bb3b2573 --- /dev/null +++ b/1088/CH4/EX4.6/Example6.sce @@ -0,0 +1,42 @@ +clear +mode(-1) +pwd +cwd=ans +t=tokens(cwd,'\') +par=strcat(t(1:(size(t,'r')-1)),'\') +clc + +printf("Example 6 : Show the use of relative pathname .. by going to the parent of the current directory \n") +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$ pwd #To get the value of the current directory\n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +printf(" %s \n",cwd) +halt("........# (hit [ENTER] for next instruction)") + +printf("\n\n\n$ cd .. #To go to the current directory\n\n") +halt("........# (hit [ENTER] for next instruction)") +clc(1) +cd(par) + +printf("\n\n\n$ pwd \n\n") +halt("........# (hit [ENTER] for result)") +clc(1) +printf(" %s \n",par) +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)") +cd(cwd) +//clc() + +printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') +sleep(1000) diff --git a/1088/CH4/EX4.6/Result6.pdf b/1088/CH4/EX4.6/Result6.pdf new file mode 100755 index 000000000..aae60b21f --- /dev/null +++ b/1088/CH4/EX4.6/Result6.pdf @@ -0,0 +1,65 @@ + ans =
+
+ 1.
+
+-->exec('Example6.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 6 : Show the use of relative pathname .. by going to the parent of the current directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ pwd #To get the value of the current directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (hit [ENTER] for next instruction)
+
+
+$ cd .. #To go to the current directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM
+........# (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.6/Result6.txt b/1088/CH4/EX4.6/Result6.txt new file mode 100755 index 000000000..aae60b21f --- /dev/null +++ b/1088/CH4/EX4.6/Result6.txt @@ -0,0 +1,65 @@ + ans =
+
+ 1.
+
+-->exec('Example6.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 6 : Show the use of relative pathname .. by going to the parent of the current directory
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ pwd #To get the value of the current directory
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4
+........# (hit [ENTER] for next instruction)
+
+
+$ cd .. #To go to the current directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM
+........# (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.7/Example7.sce b/1088/CH4/EX4.7/Example7.sce new file mode 100755 index 000000000..50290850d --- /dev/null +++ b/1088/CH4/EX4.7/Example7.sce @@ -0,0 +1,31 @@ +mode(-1) +clear +clc + +disp("Example 7 : Show the use of the file command ls for long listing of files") +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$ ls #To get the files and directories present in the current directory\n\n") +halt("........# (hit [ENTER] for result)") +mode(0) +ls +mode(-1) +printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n") +printf("\n\n$ ls -l #To get the files and directories present in the current directory\n\n") +halt("........# (hit [ENTER] for result)") +mode(0) +powershell('ls') +mode(-1) +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.7/Result7.pdf b/1088/CH4/EX4.7/Result7.pdf new file mode 100755 index 000000000..a060cd4a3 --- /dev/null +++ b/1088/CH4/EX4.7/Result7.pdf @@ -0,0 +1,233 @@ + ans =
+
+ 1.
+
+-->exec('Example7.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 use of the file command ls for long listing of files
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ ls #To get the files and directories present in the current directory
+
+........# (hit [ENTER] for result) ans =
+
+!Result7.txt !
+! !
+!Result6.txt !
+! !
+!Result6.pdf !
+! !
+!Result5.txt !
+! !
+!Result5.pdf !
+! !
+!Result4.txt !
+! !
+!Result4.pdf !
+! !
+!Result3.txt !
+! !
+!Result3.pdf !
+! !
+!Result2.txt !
+! !
+!Result2.pdf !
+! !
+!Result1.txt !
+! !
+!Result1.pdf !
+! !
+!Example9.sci !
+! !
+!Example8.sci !
+! !
+!Example7.sci !
+! !
+!Example6.sci !
+! !
+!Example5.sci !
+! !
+!Example4.sci !
+! !
+!Example3.sci !
+! !
+!Example25.sci !
+! !
+!Example24.sci !
+! !
+!Example23.sci !
+! !
+!Example22.sci !
+! !
+!Example21.sci !
+! !
+!Example20.sci !
+! !
+!Example2.sci !
+! !
+!Example19.sci !
+! !
+!Example18.sci !
+! !
+!Example17.sci !
+! !
+!Example16.sci !
+! !
+!Example15.sci !
+! !
+!Example14.sci !
+! !
+!Example13.sci !
+! !
+!Example12.sci !
+! !
+!Example11.sci !
+! !
+!Example10.sci !
+! !
+!Example1.sci !
+ UNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)
+
+
+
+
+$ ls -l #To get the files and directories present in the current directory
+
+........# (hit [ENTER] for result) ans =
+
+! !
+! !
+! !
+! !
+! Directory: C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4 !
+! !
+! !
+! !
+! !
+! !
+!Mode LastWriteTime Length Name !
+! !
+!---- ------------- ------ ---- !
+! !
+!-a--- 31-05-2013 19:17 2135 Example1.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example10.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example11.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example12.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example13.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example14.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example15.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example16.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example17.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example18.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example19.sci !
+! !
+!-a--- 31-05-2013 19:20 2129 Example2.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example20.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example21.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example22.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example23.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example24.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example25.sci !
+! !
+!-a--- 31-05-2013 20:25 2479 Example3.sci !
+! !
+!-a--- 31-05-2013 19:42 2477 Example4.sci !
+! !
+!-a--- 31-05-2013 21:27 3007 Example5.sci !
+! !
+!-a--- 31-05-2013 21:24 2574 Example6.sci !
+! !
+!-a--- 31-05-2013 21:52 2397 Example7.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example8.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example9.sci !
+! !
+!-a--- 02-06-2013 21:59 1975 Result1.pdf !
+! !
+!-a--- 02-06-2013 21:58 1975 Result1.txt !
+! !
+!-a--- 02-06-2013 22:01 1989 Result2.pdf !
+! !
+!-a--- 02-06-2013 22:01 1989 Result2.txt !
+! !
+!-a--- 02-06-2013 22:03 2242 Result3.pdf !
+! !
+!-a--- 02-06-2013 22:03 2242 Result3.txt !
+! !
+!-a--- 02-06-2013 22:05 2216 Result4.pdf !
+! !
+!-a--- 02-06-2013 22:05 2216 Result4.txt !
+! !
+!-a--- 02-06-2013 22:07 2639 Result5.pdf !
+! !
+!-a--- 02-06-2013 22:07 2639 Result5.txt !
+! !
+!-a--- 02-06-2013 22:09 2303 Result6.pdf !
+! !
+!-a--- 02-06-2013 22:09 2303 Result6.txt !
+! !
+!-a--- 02-06-2013 22:11 3370 Result7.txt !
+! !
+! !
+! !
+! !
+........# (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.7/Result7.txt b/1088/CH4/EX4.7/Result7.txt new file mode 100755 index 000000000..a060cd4a3 --- /dev/null +++ b/1088/CH4/EX4.7/Result7.txt @@ -0,0 +1,233 @@ + ans =
+
+ 1.
+
+-->exec('Example7.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 use of the file command ls for long listing of files
+
+ ****************************************************************
+
+ 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)
+
+
+
+
+$ ls #To get the files and directories present in the current directory
+
+........# (hit [ENTER] for result) ans =
+
+!Result7.txt !
+! !
+!Result6.txt !
+! !
+!Result6.pdf !
+! !
+!Result5.txt !
+! !
+!Result5.pdf !
+! !
+!Result4.txt !
+! !
+!Result4.pdf !
+! !
+!Result3.txt !
+! !
+!Result3.pdf !
+! !
+!Result2.txt !
+! !
+!Result2.pdf !
+! !
+!Result1.txt !
+! !
+!Result1.pdf !
+! !
+!Example9.sci !
+! !
+!Example8.sci !
+! !
+!Example7.sci !
+! !
+!Example6.sci !
+! !
+!Example5.sci !
+! !
+!Example4.sci !
+! !
+!Example3.sci !
+! !
+!Example25.sci !
+! !
+!Example24.sci !
+! !
+!Example23.sci !
+! !
+!Example22.sci !
+! !
+!Example21.sci !
+! !
+!Example20.sci !
+! !
+!Example2.sci !
+! !
+!Example19.sci !
+! !
+!Example18.sci !
+! !
+!Example17.sci !
+! !
+!Example16.sci !
+! !
+!Example15.sci !
+! !
+!Example14.sci !
+! !
+!Example13.sci !
+! !
+!Example12.sci !
+! !
+!Example11.sci !
+! !
+!Example10.sci !
+! !
+!Example1.sci !
+ UNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)
+
+
+
+
+$ ls -l #To get the files and directories present in the current directory
+
+........# (hit [ENTER] for result) ans =
+
+! !
+! !
+! !
+! !
+! Directory: C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4 !
+! !
+! !
+! !
+! !
+! !
+!Mode LastWriteTime Length Name !
+! !
+!---- ------------- ------ ---- !
+! !
+!-a--- 31-05-2013 19:17 2135 Example1.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example10.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example11.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example12.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example13.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example14.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example15.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example16.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example17.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example18.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example19.sci !
+! !
+!-a--- 31-05-2013 19:20 2129 Example2.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example20.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example21.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example22.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example23.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example24.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example25.sci !
+! !
+!-a--- 31-05-2013 20:25 2479 Example3.sci !
+! !
+!-a--- 31-05-2013 19:42 2477 Example4.sci !
+! !
+!-a--- 31-05-2013 21:27 3007 Example5.sci !
+! !
+!-a--- 31-05-2013 21:24 2574 Example6.sci !
+! !
+!-a--- 31-05-2013 21:52 2397 Example7.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example8.sci !
+! !
+!-a--- 28-05-2013 19:49 1129 Example9.sci !
+! !
+!-a--- 02-06-2013 21:59 1975 Result1.pdf !
+! !
+!-a--- 02-06-2013 21:58 1975 Result1.txt !
+! !
+!-a--- 02-06-2013 22:01 1989 Result2.pdf !
+! !
+!-a--- 02-06-2013 22:01 1989 Result2.txt !
+! !
+!-a--- 02-06-2013 22:03 2242 Result3.pdf !
+! !
+!-a--- 02-06-2013 22:03 2242 Result3.txt !
+! !
+!-a--- 02-06-2013 22:05 2216 Result4.pdf !
+! !
+!-a--- 02-06-2013 22:05 2216 Result4.txt !
+! !
+!-a--- 02-06-2013 22:07 2639 Result5.pdf !
+! !
+!-a--- 02-06-2013 22:07 2639 Result5.txt !
+! !
+!-a--- 02-06-2013 22:09 2303 Result6.pdf !
+! !
+!-a--- 02-06-2013 22:09 2303 Result6.txt !
+! !
+!-a--- 02-06-2013 22:11 3370 Result7.txt !
+! !
+! !
+! !
+! !
+........# (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)
|