Simple loop to mail all active users.

Thread Tools Search this Thread
# 8  
Old 11-09-2016
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...
# 9  
Old 11-09-2016
man bash and search for command substitution.

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:
or (“backquoted” version):

It's been around in sh already, so it MUST be there. What shell and version do you use?

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Search the string in the active log and send mail balareddy Shell Programming and Scripting 1 05-13-2014 09:42 AM
Authenticate AIX users from MS Active Directory kah00na AIX 3 02-28-2011 12:21 PM
Loop script required within an active log file Henk Trumpie Shell Programming and Scripting 3 01-24-2011 07:06 AM
keep mail command active inside a script on unix iga3725 Shell Programming and Scripting 4 10-19-2010 02:05 PM
control permissions for Active Directory users on AIX xia777 UNIX for Dummies Questions & Answers 1 04-20-2010 05:44 AM
Command for list of active/disabled users Mike1234 Linux 1 07-28-2008 05:58 PM
Active / Non Active users ? varungupta UNIX for Advanced & Expert Users 3 05-12-2008 12:00 AM