Hi, that would work as long as there are no spaces in the filenames, otherwise you could use something like this if your find supports print0:
(my ls -alt has the owner in the third column)
or this if it supports printf:
Last edited by Scrutinizer; 06-19-2010 at 07:17 AM..
Hi Folks,
I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error.
For example, when I am logged in as 'webadmin', I have the following file:
... (4 Replies)
hi gurus,
i would like to know how can i find logs files which were recently modified or updated? :confused:
using this command?
find . -name "*.log" -mtime ??
so what should i put for mtime?
thanks.
wee (9 Replies)
How do I do it? Simple answers preferred... using BASH.. the less code the better.
I want to find out where Indesign is caching PDF tmp data ... I figure this is a good way to do it.. either way i wanna know how to do it. (2 Replies)
Good morning everybody,
I'm using Minix and I want to find the user with less number of files in the system
I have tried this solution:
#! /bin/sh
indice=0
listaCut=$(cut -f 3 -d : /etc/passwd)
for USER in $listaCut; do
cont=0
listaFind=$(find / -user "${USER}" -type -f)
... (4 Replies)
Hi,
Can you guys tell me how do i find the most recently changed files, say an hour before, few hours before, a day before etc....
Thanks!!!! (3 Replies)
i am prompting for a name to search.
read user
if
then
however, i get this error:
please enter a username on the system:
fool
menu_script2.sh: line 123: (4 Replies)
i need to do the following operations in solaris 10:
1.change owner and group owner for files which are not owned by the current user and user group
2.to can delete files in the /tmp directory which are not of the current user
3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Hello
I have a file containing the list of different folders like this file_list.txt:
/s8/tests/test1
/s8/tests/tests/test2
/s8/tests/test2
/s8/tests/tests/test2/test5
I want a script to put the owner user of each folder in front of it in the text file.
So the reult would become... (5 Replies)