Frustrating Groups loop


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Frustrating Groups loop
# 8  
Old 07-11-2012
Remove the ; from after the 'do'.

Or, better yet, stop squashing all your code onto one line so you can actually read it later.
# 9  
Old 07-11-2012
I typically try to do it in the shell before I put it all into a script. In any event I have everything I need and this script is humming away nicely. Appreciate the help as always.
# 10  
Old 07-11-2012
You don't have to squash it all onto one line when you type it into the shell. It will wait for you.
# 11  
Old 07-11-2012
Quote:
Originally Posted by Corona688
You don't have to squash it all onto one line when you type it into the shell. It will wait for you.
Correct, but then I press up to re-run it and it's all semi-colon'd.
# 12  
Old 07-11-2012
@MainDotC
Yet again.
Please post what Operating System you are have and what Shell you prefer.

Please also post a description of the problem and what output you require. I cannot imagine that trying to parse the output from the id command is a sensible option.
# 13  
Old 07-11-2012
@methyl - the issue is resolved, I was simply replying to jim's response...
# 14  
Old 07-11-2012
Quote:
Originally Posted by MaindotC
@methyl - the issue is resolved, I was simply replying to jim's response...
Glad all is working now.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Frustrating in splitting text files

Duplicate threads merged Dear all, I have been working with a very large text file manually. I'm ordering how to do this with a script. The gamma should be straightforward: I just want split the text into multiple files. The file name should be "CP1", "TS1 for the second step", "PR1 for... (3 Replies)
Discussion started by: liuzhencc
3 Replies

2. Ubuntu

PPPOE + Ubuntu = Frustrating

Hii everyone, I will be explaining what kind of problem I am having with Ubuntu and PPPOE. I have dual booted my PC with Win 7 and Ubuntu 10.10 Previously, whenever I use to start my ubuntu, internet automatically used to start up.. .no problems. I had created a DSL connection through... (0 Replies)
Discussion started by: zsycho
0 Replies

3. Shell Programming and Scripting

Frustrating error special character <96>

Hiya Folks, Wondering if anybody has ran into this before, it's driving me nuts! Searching on this in the forums didn't turn up anything that was any help. My script is going through a csv file I have, running ksh under Cygwin. The code I have is... REQUEST_TYPE=$(grep REQ $FILES |... (3 Replies)
Discussion started by: jtollefson
3 Replies

4. UNIX for Dummies Questions & Answers

Groups

Must I be in a group? I am using Ubuntu and am the only user on my PC. I know how to change groups but do not see a way to not be in a group. Any help would be appreciated. (2 Replies)
Discussion started by: nthepines
2 Replies

5. UNIX for Dummies Questions & Answers

Frustrating but simple preference question

So I am set up on a new box for work here and I have a frustrating preference issue. Whenever I hit backspace, it deletes a whole word instead of a single character. I understand that this is generally the functionality of hitting ctrl-backspace. I tried googling for a solution and dabbled... (3 Replies)
Discussion started by: jasondj
3 Replies

6. Solaris

groups

1 user in member of 4 groups find file permissions and default group (1 Reply)
Discussion started by: tirupathi
1 Replies

7. Solaris

groups

how to create 1000 users in 1 group (0 Replies)
Discussion started by: tirupathi
0 Replies

8. AIX

Where are my groups

Hello A couple of weeks ago, I added a user to an AIX 5.3 system. I go to add one today, and it appears that when creating a user in smit, I cannot see any groups. No primary groups No Group set No Admin Groups The /etc/group and etc/secuity/group files seem to be intact. I did... (4 Replies)
Discussion started by: mhenryj
4 Replies

9. Shell Programming and Scripting

Frustrating Disk space script

This my frustrating disk space script that is supposed to send me a email whenever the disk space reaches 90% but this has some problem that just would not work ..can anyone please tell me when im going wrong #!/bin/ksh sendemail=-1 space=`df -bhk /users/siebelserver |awk '{print$5}'` echo... (4 Replies)
Discussion started by: vivsiv
4 Replies

10. Linux

Frustrating!

Hi All I have an extremely frustrating problem with my Mandrake 9.1 machine. When I am in KDE no browser at all will resolve hostnames. Networking is fine, as I can reach websites via IP address, however hostnames just don't work! When I conduct 'nslookup' or 'host' queries via the command line,... (2 Replies)
Discussion started by: saabir
2 Replies
Login or Register to Ask a Question