Forum: Shell Scripting Aug 16th, 2007 |
| Replies: 2 Views: 1,095 |
Forum: Shell Scripting Aug 14th, 2007 |
| Replies: 2 Views: 1,095 Hey, I need to know the command for adding secondary groups for a user. The only catch is that I have to assume that they are already members of some secondary groups. And if I use modprpw -G... |
Forum: Shell Scripting Aug 7th, 2007 |
| Replies: 2 Views: 3,750 found something that works:
awk -F: 'FNR==NR {
users[$2]
next
}
!( $1 in users ) { print $0 }' myusers /etc/passwd |
Forum: Shell Scripting Aug 7th, 2007 |
| Replies: 2 Views: 3,750 How about something like this:
Do the awk to get all the usernames out:
root# awk -F: '{ print $1 }' /etc/passwd > users.txt
Then do a for loop with a grep -v against all the usernames in... |
Forum: Shell Scripting Aug 7th, 2007 |
| Replies: 2 Views: 3,750 Hey, I'm running an HP-UX box, trying to create a little script that will compare the /etc/passwd file with another file I have created.
Each line in this file, let's call it /etc/myusers, has a... |
Forum: Shell Scripting Jul 26th, 2007 |
| Replies: 4 Views: 1,301 thanks! i'll give that a try. |
Forum: Shell Scripting Jul 25th, 2007 |
| Replies: 4 Views: 1,301 I was just told by someone else that this is not perl. Now I don't know what it is. Please help! All I need to do is know how to grab these variables and use them in my shell script! |
Forum: Shell Scripting Jul 23rd, 2007 |
| Replies: 4 Views: 1,301 Alright, I finally found out that the script is simply a perl script. It's just a bunch of sub-routines naming variables. I was thinking it was a shell script, that's why I was so confused. So now... |
Forum: Shell Scripting Jul 18th, 2007 |
| Replies: 4 Views: 1,301 I originally posted this in the wrong forum, so I hope I don't get ripped apart for a double post. As part of my new job, I'm learning a little shell scripting, working on an HP-UX system.
I'm... |
Forum: Shell Scripting Feb 26th, 2007 |
| Replies: 5 Views: 3,751 thanks guys. I actually found that powerarchive works great. |
Forum: Shell Scripting Feb 14th, 2007 |
| Replies: 5 Views: 3,751 It very well could be the app I'm using to package the tar in the first place that is causing the problem. It has absolutely no options at all. The app I'm using is free and can be obtained here... |
Forum: Shell Scripting Feb 14th, 2007 |
| Replies: 5 Views: 3,751 Hey, I hope I'm posting this in the right forum. I'm compressing a bunch of files to tar.gz, then uploading them to my webhosts ftp server, and then trying to uncompress them on my server using a... |