Δημοσιεύτηκε: 06 Ιαν 2015, 21:10
από panick1992
Gia sas!

Exo na kanw mia ergasia gia tin sxoli mou alla tha fano eilikrinis ke tha sas pw oti den exo idea pos na to kanw! an mpori na to kani kapios gia mena tha to ektimousa!

to proto script eine afto.
Develop a Unix script which will use two run-time arguments; the rst is a
(speci caltion of a path to a) source folder, the second is a target folder; and it
will do the following:
1. if the source folder does not exist, display a message and exit;
2. if the target folder does not exist, create it and display an appropriate
message; if it does exist, display a message;
3. for each regular fi le in the source folder,
(a) display its details (name, size, date etc)
(b) ask the user whether the fi le should be copied
(c) if the user answers \no" display a message \skipped", otherwise copy
the fi le to the target, set the copy's permissions to \read-only" , and
display a message.

to deftero script eine afto.
Develop a unix script(s) that accept a list of les (or a glob) as its input.

For each fi le
1)Find its size
2)Record the maximum size found in the set of input les
3)Keep a running total of the sizes found

When all the fi les have been processed, print out some statistics
1)Total size of files
2)Average size
3)Size and name of the biggest file