My friend works in a IT company where he is required to keep a count of XML files inside a directory (including subdirectories).
However the count using ls -LR | grep .xml or similar takes a lot of time as the count of files is in the millions.
I was thinking what can be a better approach?
Can some kind of background process take care of this, so that whenever there is a new file created or mod
1. Write a menu driven shell program to
a. Display calendar of current month.
b. Search for a pattern in all the files/subdirectories from current directory.
c. Count the no. of directories / sub directories in current directory.
2. Display day of week for a given date.
For a student file with the following fields, rollno, name, marks. Generate 2 files Pass and Failcontaining records of student who have passed or failed. Also count the number of students who have passed or failed.
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A script that takes any number of directories as command line arguments and then lists the contents of each of these directories.
Hi all,
Am trying to convert a script from ksh to bash :wall:.
This is my first post in the Dani community. I am brand new to java, 5 weeks into an intro to computer programming course. My assignment is to create 10 random numbers between 50 and 100. Then I am supposed to sort them from lowest to highest, find the average and the max and min. I have got all but the sorting down.
hi my code is something like
Code:
count=0
echo "oracle TABLESPACE NAME nd TARGET"
while [ loop condition ]
do
count=`expr $count + 1`
(1) tts_space_name$count=`echo $tts | cut -d "," -f$cou
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
There is a menu driven program and there are some fields to be achived
3. Display contents of all .lst files in the current directory.
4. For a student file with the following fields, rollno, name, marks.
For a student file with the following fields, rollno, name, marks. Generate 2 files Pass and Failcontaining records of student who have passed or failed.