Giter Club home page Giter Club logo

cs282-a3's Introduction

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.

cs282-a3's People

Contributors

var avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.