05-20-2009
EMail Address Validation (Shell Script)
Hi,
Can anyone provide me the code snippet for EMail Address Validation.
User is going to enter the email address in form window. I need to validate the format is correct.
Thanks in Advance
BS
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Group,
Please forgive in case this is discussed.
I need help regarding a simple script to verify if the give address exist in the Ldap directory. If the email exists the script should exit with a 0 status or else a non zero status.
I am currently using the following script (and it is... (4 Replies)
Discussion started by: Ramdas
4 Replies
2. Shell Programming and Scripting
Hi does anybody have a ksh/sh/bash function that i can embed into my script that i could use to validate an inputted IP address, I tried using one big long regular expression but it got very long and complicated
ie
#!/bin/ksh
echo " Please enter your IP address"
read IP
---some function... (6 Replies)
Discussion started by: hcclnoodles
6 Replies
3. Shell Programming and Scripting
Hi
I am new to this forum.I need a help in the following:
We receve pipe delimited file with
transaction ID,tran_date,Quest_cd,Ans_cd,ans_value.
Same transaction ID can be repeated with different quest_cd and ans_cd.
Basically I need to check if a perticular pair of quest_cd and ans_cd... (1 Reply)
Discussion started by: srichakra
1 Replies
4. Shell Programming and Scripting
PICKUPDIR=/home/ready/
DROPDIR=/home/downloaded/
TODAY=$(date '+%d%m%y')
LOGFILE=xyz-$TODAY.log
###########
#FUNCTIONS#
###########
#function to perform file transfer to servercopy folder
opalO ()
{
cd $PICKUPDIR
for fileName in `ls -1 TES_ONE*`
do
cp $fileName $DROPDIR
done
} >>... (4 Replies)
Discussion started by: ravigupta2u
4 Replies
5. Shell Programming and Scripting
we have 4000 html pages that need an email address changed.
eg) company@yahoo.com to company@hotmail.com
we only want the file modified date to be changed when there has been a change to the file.
Should I be using grep?
I fairly new to UNIX and was told to using something like... (2 Replies)
Discussion started by: mchelle_99
2 Replies
6. Shell Programming and Scripting
Hi All,
I have a shell script in Linux and it will be invoked by 2 methods,
1) An automated background process .
2) Logining into the box and directly executing the script.
I need to put a validation in my shell script such that it will be executed successfully on when an... (11 Replies)
Discussion started by: vininx
11 Replies
7. Shell Programming and Scripting
Hi All,
I am a newbie...I would like to have a function which ll check if a file contains valid strings before "=" operator. Just to give you my requirement:
assume my file has content:
hello= gsdgsd sfdsg sgdsg sgdgdg
world= gggg hhhh iiiii
xxxx= pppp ppppp pppp
my... (1 Reply)
Discussion started by: rtagarra
1 Replies
8. UNIX for Dummies Questions & Answers
I need help with one of my shell script. The script is working fine but i need to add two condition -
i need to get rid of all the below ftp messages and need to have only ftp completed or failed message.
example when i run the script i get below lines -
Connected to xxxx
220 (vsFTPd... (1 Reply)
Discussion started by: chandraprakash
1 Replies
9. Shell Programming and Scripting
hello every one
I wrote the script to validate all the urls from my server . sourcing text file which contains the list of urls and trying to check every url and based on response printing url is up or not. the issue when i use the below code with url is printing url exist and and in loop it's... (3 Replies)
Discussion started by: markjohn1
3 Replies
LEARN ABOUT DEBIAN
jifty::plugin::user::mixin::model::user
Jifty::Plugin::User::Mixin::Model::User(3pm) User Contributed Perl Documentation Jifty::Plugin::User::Mixin::Model::User(3pm)
NAME
Jifty::Plugin::User::Mixin::Model::User - user model base mixin
SYNOPSIS
package MyApp::Model::User;
use Jifty::DBI::Schema;
use MyApp::Record schema {
# column definitions
};
# Import columns: name, email and email_confirmed
use Jifty::Plugin::User::Mixin::Model::User;
DESCRIPTION
This mixin may be added to a model to give your user accounts a name and an email address. This module may be used as the basic building
block for building account models in your application. It can be combined with mixins from an authentication plugin to create an object
suitable for a given authentication mechanism.
SCHEMA
This mixin model adds the following columns to the model.
name
This is the username/nickname for the user of the account.
email
This is the email address of the account. It is intended as a bare minimum confirmation of identity and for communication of password
resets and other account information.
email_confirmed
This is a flag indicating whether the user has confirmed ownership of the given email address.
METHODS
set_email ADDRESS
Whenever a user's email is set to a new value, we need to make sure they reconfirm it.
validate_email
Makes sure that the email address looks like an email address and is not taken.
SEE ALSO
Jifty::Plugin::Authentication::Password, Jifty::Plugin::Authentication::Password::Mixin::Model::User
LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
perl v5.14.2 2010-12-10 Jifty::Plugin::User::Mixin::Model::User(3pm)