Hello,
This may have been addressed already somewhere, however I am looking for the easiest/shortest way to validate a response from a user for a file name.
The file name should not have any of the following characters
~`!@#$%^&*()_-+={|\:;"'<,>.?/
Further the response should not have any... (2 Replies)
Hi all,
I have a shell script(K shell) which takes a date as input.
i want the input to be in DD-MM-YYYY format.
Can i enforce such a format of input string using just one line of code?
OR
do i need to parse the input date into different components and test them using Case statements... (2 Replies)
Hi,
This will most likely be a simple answer.
Currently I have a situation where my script will be sent various options:
-o1 -o2 -oe3@somthing.com
Now, if I want to run a certain command based on the option I am sent, I am doing the following.
for o in $(echo $options)
do
if
... (3 Replies)
I'm writing a bash shell script to 'help' me post to susepaste (I can NEVER remember the time options).
Here's the code:
#!/bin/bash
##########
#
# Project : personal script.
# Started : Wed Aug 03, 2011
# Author : Habitual
# Description : susepaste c-li script with user... (5 Replies)
Is there an easy way to validate an input field size. Let us say a script is asking to enter 10 digits mobile number, how do I write a script to validate it is numeric and is 10 digits in length? I just need an easy way w/o using looks ...etc. Is there such a away ?
Here is what I have so far... (6 Replies)
$Input_filename=$ARGV;
if (!-d $Input_filename && ! -e $Input_filename)
{
print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n";
exit;
}
1. Input Is suppose to be something like "$ABCD/def/dsed.txt".
if the input is wrong the script should throw an ERROR message.... (2 Replies)
We have a job which we need to run on daily bases, before loading data in a table we need to validate whether the input file is received or not.Inputfile formatsrc_sps_d_Call_Center_Reporting_yyyymmdd_01.dat SPS-Service nameYYYY-yearMM-MonthDD-dayLike above we will get n number of files for... (1 Reply)
We have a job which we need to run on daily bases, before loading data in a table we need to validate whether the input file is received or not.
Daily client will place the files in a particular path.Below files which I need to process for 04/01/2013(Load date).... (2 Replies)
Discussion started by: katakamvivek
2 Replies
LEARN ABOUT DEBIAN
postal-list
postal-list(1) Postal postal-list(1)NAME
postal-list - program to show how postal expands user names
SYNOPSIS
postal-list user-list-filename conversion-filename
DESCRIPTION
This program shows the expansion that the postal program uses on email addresses. This can be used to make sure that you're configuration
files do what you expect them to, and can also be used to produce a list of user-names for an account creation script (in case you want to
create a million test accounts in a conveniant fashion).
The user-list-filename is the name of a file which contains a list of user's email addresses. This can be just user-names or fully quali-
fied email addresses.
The conversion-filename parameter will be the name of a file containing the conversions to apply to email addresses. Each line in the file
can either be a comment (starting with "#") or is to contain two parameters. The first parameter is the regular expression. For each
email that is to be sent a randomly selected user-name will be checked against all regular expressions, the first match will determine the
translation that is to be applied. The translation will be the second parameter on the line. It will contain a number of "." characters
specifying characters in the name that are not to be translated. To specify the translations a range of characters can be specified inside
square brackets. For example to have every address starting with "a" have a character from "01234567890abc" as it's second character and a
character from "xyz" as it's third character you would have the following: ^a .[0-9abc][xyz]
RETURN CODES
0 No Error
1 Bad Parameters
AUTHOR
This program, it's manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>.
AVAILABILITY
The source is available from http://doc.coker.com.au/projects/postal/ .
See http://etbe.coker.com.au/category/benchmark for further information.
SEE ALSO postal(8),rabid(8),regex(7)russell@coker.com.au 0.70 postal-list(1)