var / cs282-a3 Goto Github PK
View Code? Open in Web Editor NEWA partially finished assignment from one of my courses.
A partially finished assignment from one of my courses.
The scripts in this repo try to solve few of the following requirements: ==== * Write a file f0 containing UNIX commands, in the directory A3-Name-id-stdid, such that : * Finds a file in /users/groups/cs282 which is member of the group 282 and its length is greater than 0 * If you find more than one file, select the shortest one. * Your sequence of UNIX commands should identify that file and copy it in your home directory. and expand the content of the archive. * Create a file f1 containing a list of UNIX commands, in the directory A3-Name-id-stdid, such that: * copy the entire content of the subdirectory sampleA3 in A3-Name-id-stdid * create the directory CS282Out in A3-Name-id-stdid. * change the group of all the files in CS282Data to the group cs282. The group is changed just for the files, not to the parent directory CS282Data. * give permission to read and execute for others to the whole directory CS282in * restrict writing permissions for everybody for all the files in CS282in * print each step that is executed. * Create a file f2 containing a list of UNIX commands, in the directory A3-Name-id-stdid, such that: * files with names starting with letter a, containing letter b on the fourth position in the directory CS282in are selected and concatenated together in the file name-id.txt in CS282Out, where name is your name and id is the gid of the person executing the file f2. * give write access to others, but disable execute for group and others. * list the number of files concatenated together and the statistic for the results in the following format: name-id.txt contains w words, c characters, and l lines, where w, c, l are replaced with the real values. * print a meaningful message for each processing step. * Create a file f3 containing a list of UNIX commands, in the directory A3-Name-id-stdid, such that: * takes the first three files from CS282in starting with letter b in alphabetical order to CS282out * delete all the others starting with letter b and list the names of the deleted files * execute f1 and f2 * disable execution for f1 and f2 * create a directory temp in A3-Name-id-stdid with all permissions for everybody, that cannot be deleted * copy f1 in this directory giving execution rights for everybody, but f1 will be executed as the owner.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.