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)
the user inputs names that have to be inside square brackets
I want to check if the user puts the brackets and if not ask him to re-enter the names (9 Replies)
Hey, im trying to validate a user input and need some help. The input needs to be just a single letter. Im using a case to so this eg:
read answer
case $answer in
*) echo "OK"
;;
*) echo "This is a number"
read answer
;;
*) echo... (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 trying to only read price (FLOAT (i.e 1.10, 3.14, etc etc))
If the input is just an integer, I will add a .00 behind. (i.e 3 becomes 3.00 , 20 becomes 20.00)
If the input is without 2 decimal places, I'll add a 0. (i.e 3.1 becomes 3.10)
I tried using the below code, it works but I don't... (6 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)
hi all,
i have a script that need user input provide all variables that needed to complete a job.
this is my current script:
echo "type file source and it full path :"
read INPUTFILE
if || ;
then
echo "ERROR: you didn't enter a file source or file source is not... (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.
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
msgcmp
MSGCMP(1) GNU MSGCMP(1)NAME
msgcmp - compare message catalog and template
SYNOPSIS
msgcmp [OPTION] def.po ref.pot
DESCRIPTION
Compare two Uniforum style .po files to check that both contain the same set of msgid strings. The def.po file is an existing PO file with
the translations. The ref.pot file is the last created PO file, or a PO Template file (generally created by xgettext). This is useful for
checking that you have translated each and every message in your program. Where an exact match cannot be found, fuzzy matching is used to
produce better diagnostics.
Mandatory arguments to long options are mandatory for short options too.
Input file location:
def.po translations
ref.pot
references to the sources
-D, --directory=DIRECTORY
add DIRECTORY to list for input files search
Operation modifiers:
-m, --multi-domain
apply ref.pot to each of the domains in def.po
-N, --no-fuzzy-matching
do not use fuzzy matching
--use-fuzzy
consider fuzzy entries
--use-untranslated
consider untranslated entries
Input file syntax:
-P, --properties-input
input files are in Java .properties syntax
--stringtable-input
input files are in NeXTstep/GNUstep .strings syntax
Informative output:
-h, --help
display this help and exit
-V, --version
output version information and exit
AUTHOR
Written by Peter Miller.
REPORTING BUGS
Report bugs to <bug-gnu-gettext@gnu.org>.
COPYRIGHT
Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for msgcmp is maintained as a Texinfo manual. If the info and msgcmp programs are properly installed at your site,
the command
info msgcmp
should give you access to the complete manual.
GNU gettext-tools 0.18.1 June 2010 MSGCMP(1)