Search Results

Search: Posts Made By: Zwiebi
6,450
Posted By Zwiebi
DIR=$( ls -l | awk '{print $3}' ) will return...
DIR=$( ls -l | awk '{print $3}' )
will return the name of the owner for every item in the folder, while your solution returns the list of folders. They are pretty much the same, but if we want to...
6,450
Posted By Zwiebi
@ahamed101: A thank you is on it's way, but...
@ahamed101:

A thank you is on it's way, but I think I got logged out from the site before I posted it, and now a moderator has to approve it. :-)

Your last code worked, just as it should be,...
6,450
Posted By Zwiebi
WOW, thank you, that worked just perfectly! ...
WOW, thank you, that worked just perfectly!

I knew, it can be done very easily, I was just too amateur to find :-) it.
6,450
Posted By Zwiebi
Well, I was thinking about getting a userlist...
Well, I was thinking about getting a userlist with
cat /etc/passwd | grep /home | cut -d: -f1but this is messy too (extra results), and does not solve my problem. By generic I meant, that the...
6,450
Posted By Zwiebi
Yes, like this, but my main problem is processing...
Yes, like this, but my main problem is processing the folderlist in /home, because the script should work in any enviroment, not just with predefined names.

This:

cd /home
ls -l | awk '{print...
6,450
Posted By Zwiebi
Shell script that lists files with different owner than the folder
Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy