blob: 1650a8b5d5b4fb40b10de15c6794e91d83b73757 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clear
mode(-1)
clc
disp("Example 6 : Display all the files in the current directory and files beginning with ->Ex<-")
printf("\n*******************************************************************\n")
disp('Answer : ')
halt('Press [Enter] to continue')
disp('Files in the current directory ')
mode(0)
ls
mode(-1)
halt('Press Enter to see files beginning with ->Ex<-')
printf("\n-------------------------------------------------------------------------------------------------\n")
disp('Files Beginning with ->Ex<-')
mode(0)
ls Ex*
mode(-1)
printf("\n*******************************************************************\n")
|