The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
KSH Programming to read and mail fields
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
KSH Programming to read and mail fields
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
04-21-2009
msvinaykumar
Registered User
Join Date: Aug 2006
Posts: 3
some code snips
I ll give some code snips
it may help u
#!/bin/sh
var=`tail -2 file`
for i in $var; do
echo $i | cut -d "|" -f7|mailx -s "subject" abc.com
done
Or after CUT command u need to store that value to variable
and use it accordingly
msvinaykumar
View Public Profile
Find all posts by msvinaykumar
Find msvinaykumar's past nominations received
Find msvinaykumar's present nominations given