Homework & Coursework Questions

Students must use and complete the template provided. If you do not use the template your post may be deleted! Special homework rules apply here.

Simple loop to mail all active users.

👤 Login to reply

    #8  
Old 11-09-2016
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
You havent been searching much, in less than 15 seconds I got this:
Command substitution - Linux Shell Scripting Tutorial - A Beginner's handbook

But many more exist out there...
That said this link should solve all your issues...
Sponsored Links
    #9  
Old 11-09-2016
RudiC RudiC is offline Forum Staff  
Moderator
 
man bash and search for command substitution.


Quote:
Command Substitution
Command substitution allows the output of a command to be substituted in place of the command name itself. Command substitution occurs when the command is enclosed as follows:
$(command)
or (“backquoted” version):
`command`
.
.
.

It's been around in sh already, so it MUST be there. What shell and version do you use?
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Active / Non Active users ? varungupta UNIX for Advanced & Expert Users 3 05-11-2008 11:00 PM



All times are GMT -4. The time now is 03:00 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?