Name

sweep - File utility

Syntax

sweep [ directory ]

Description

Sweep is patterned after the popular CP/M SWEEP utility which allows you to manipulate files with much ease. Sweep lets you to perform many different disk-related operations on single files as well as on batches of files.

To operate on a single file, simply advance to the file entry you desire and then press a command key.

To operate on a batch of files, advance to each file desired, "tag" it, and then press the letter of the command you want to perform on those files.

When sweep is invoked it first displays a help screen, and then reads all the filenames from the current working directory. If you use a directory name with sweep, as in sweep $/pub/stuff, the working directory is changed to the new directory.

At this point you may use any of the following commands:

T

tag a file (use control-T to tag all files)

U

untag a file (use control-U to untag all files)

D

delete the selected file(s)

C

copy the selected file(s)

M

move the selected file(s). This is the same as a copy followed by a delete.

V

view the selected file(s).

P

go to previous file in the list.

^P

go to the previous directory. After pressing ^P you can type RETURN to select the prompted directory, or edit the path presented to you to go to a different area.

L

change to a new directory location. If you’re currently sitting next to a subdirectory entry in the file list, pressing L RETURN changes to that directory.

A

alters protection attributes for the selected file(s). This allows you to “lock” or “unlock” a file.

S

toggles sweep’s list sorting feature. Sweep comes up initially with all the files in the list sorted alphabetically.

E

edit the selected file(s). The editor you select using the setenv command is used.

R

rename the selected file(s).

Q

quit sweep and return to the shell.

N

create a new directory in the current directory. Enter the name of the new directory when prompted.

?

display the command list

Any key other than those listed will advance you from the current entry to the next one. If you’re at the last entry in this list, advancing will take you back to the first entry. Similarly, retreating beyond the first entry will take you to the last entry in the list.

When supplying the target path for a copy or a move, simply give the name of a directory if more than one file is tagged. If no files are tagged, you can either give the name of a directory, or supply a new path and filename to copy it with a different destination name.

See Also

cat(C), cp(C), ls(C), mv(C), rm(C), setfile(C)