Search Results

Search: Posts Made By: tmarikle
10,773
Posted By tmarikle
Maybe something like this: nawk -F'~' '$1...
Maybe something like this:


nawk -F'~' '$1 ~ /AK[59]/ {
status=($2=="A") ? "successful" : "unsuccessful"
system ("mailx -s" $1 ":\\ " status "\ recipient@email_domain.com </dev/null")...
11,469
Posted By tmarikle
Here's my favorite way of doing this, similar to...
Here's my favorite way of doing this, similar to justsam but without piping $str through tr (UUOtr :D )


str="name1, name2, name3, "

typeset IFS=' ,'
for i in $str
do
echo $i$i ...
8,027
Posted By tmarikle
Looking at the script again, the answer is clear....
Looking at the script again, the answer is clear. You are attempting to use a "here" document with the "<<EOF" statement. Your entire script is being pushed into sqlplus and when it reaches the...
19,966
Posted By tmarikle
Here's a quick and sloppy way of doing it in KSH....
Here's a quick and sloppy way of doing it in KSH.
{
typeset IFS='
'
while read USER_NAME
do
USER_DIR=$(grep $USER_NAME /etc/passwd | awk -F: '{print $6}') ...
103,840
Posted By tmarikle
By the way, your specific issue is that you do...
By the way, your specific issue is that you do not have quotes around your variable:


echo "$list" # now see what happens...
Showing results 1 to 5 of 5

 

Featured Tech Videos

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