>> I use script files in mc to range every file in a directory and they
>>change the ownership and attributes for security reasons.
> Why use mc? Why not "fild /home/user/{PIX,PDF,DOC} -type f"?
Because I am using mc as a file manager and as part of the copying
and moving I run this script.
Slackware doesn't contain "fild".
>>/usr/bin/nice -n -20 chown -Rhc ka4inm:users $1$2$3$4
> You need to enclose anything that might contain spaces (that nonetheless
> should be interpreted as one argument) in double quotes (""). Enclosing
> variables unneccessarily in double quotes does not hurt; single quotes
> will prevent variable expansion, so don't swap them.
> What do $1, $2, $3, and $4 contain?
It's the parts of the filename such as:
" Cliff Edwards - Hard-Hearted Hannah 1924.mp3 "
Even a filename with one space in it fails to be changed.
> Test with "echo chmod $whatever", until you're sure it's right.
In mc when the left panel is set to "Info" the left panel shows
the ownership and attributes of the selected file on the right.
The script command changes things properly, it's just that
file names with spaces fail to be included in the "batch" process.
-- 73 (= Best Regards) de: Ron ka4inm@tampabay.rr.com 100% LINUX, since July, 1997 SENT Time and Date are UTC Visit my HAM Web SITE at: http://www.qsl.net/ka4inm NO anti-virus crap used here ever!----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:38:12 EDT