summaryrefslogtreecommitdiff
path: root/1088/CH4/EX4.7/Example7.sce
diff options
context:
space:
mode:
Diffstat (limited to '1088/CH4/EX4.7/Example7.sce')
-rwxr-xr-x1088/CH4/EX4.7/Example7.sce31
1 files changed, 31 insertions, 0 deletions
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)
+