29 Jan
2004
29 Jan
'04
21:27
Hi and thanks for the tips. I changed it to:
(grep year7 /etc/passwd | awk -F: '{print "mv /home/"$1" /home/year7/"$1}') | cat
I don't understand it but it runs OK. Is there a quick one liner to explain how it works?
Steve, The English-language version reads something like .... Find every instance of the string "year7" in the file /etc/passwd and for each one you find make a command line which moves will move the home directory to /home/year7, then show me all these command lines on the screen. As Ben said running this will only show you what would be done. Make the modifications he talked about to actually action this. Damian