Search Results

Search: Posts Made By: sudharson
1,735
Posted By michaelrozar17
Or try.. awk '/51144/{print $1}' RS= inputfile
Or try..
awk '/51144/{print $1}' RS= inputfile
1,077
Posted By pravin27
If you are using solaris then use...
If you are using solaris then use /usr/xpg4/bin/awk or nawk instead of awk
6
2,221
Posted By binlib
while read i do uid=`echo $i | awk '{print...
while read i
do
uid=`echo $i | awk '{print $3}'`
login=`echo $i |awk '{print $2}'`
name=`echo $i | awk '{print $1}'`
could be coded more succinctly:
while read name login uid rest
do
Or
awk...
6
2,221
Posted By dufftime
Escape your double-quotes, or just avoid wrapping...
Escape your double-quotes, or just avoid wrapping double-quotes around your "echo" command ... they technically aren't required.

Shell sees you opening your quote after the echo, then assumes you...
6
2,221
Posted By Scrutinizer
In addition, try this: echo "/usr/sbin/useradd...
In addition, try this:
echo "/usr/sbin/useradd -u $uid -g 200 -d /local/home/$login -m -s /bin/ksh -c \"${name}_CRQ\" $login"The curly brackets are necessary here, because an underscore (_) is a...
1,899
Posted By pludi
Sorry, forgot something there. Have ssh close all...
Sorry, forgot something there. Have ssh close all input channels by adding the -n switch. And a typo I've did: it should be while read i instead of while read $i
1,899
Posted By pludi
First, don't use cat like that. A more elegant...
First, don't use cat like that. A more elegant way would be to writewhile read i
do
# Your stuff here
done < serverlist

Second, I guess you want to run all commands on the remote box. If...
Showing results 1 to 7 of 7

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