05-08-2008
Hi,
Syntax error is there in the test condition. space must be there after the opening bracket and bfore the closing bracket, like this
if [ $firstname != $myname ];then
Thanks
Penchal
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
friends, i love ya...
i wrote a script to automate using cdrdao to burn an audio cd from mp3 files, using the great tutorial at http://tldp.org/HOWTO/MP3-CD-Burning/index.html (check out the site, i believe that it's very well-written). i messed around with it and got to a place where i felt... (2 Replies)
Discussion started by: snwright
2 Replies
2. Shell Programming and Scripting
Hi friends,
I want to use sort command in script. I used the following syntax in my scipt,
sort -t '|' +3 tempcdrext4.cdr > temp.mocdr
It give me a error " Input file specified two times."
but this command work fine in the prompt without any problem.
Can sombody please tell me who... (2 Replies)
Discussion started by: maheshsri
2 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I need to do a lot of manual entries at shell prompt.
So to collect the logs(each command fired in that session, i use "SCRIPT(1) : make typescript of terminal session"
this is kool,but the problem here is that it saves the linefeed, and backspaces along with the commands in the log... (1 Reply)
Discussion started by: amit4g
1 Replies
4. Shell Programming and Scripting
Hi,
I am new to shell scripting (sh)
I need a script which will call a utility & once u call it.It will ask for inputs on the screen.These inputs it needs to get or read from a txt file.
for e.g
#! /bin/sh
while read line
do
echo $line
done
txt file will have
test
01/01/2008
... (3 Replies)
Discussion started by: innocent
3 Replies
5. Shell Programming and Scripting
Hi All ,,
I have couple of shell scripts .. I am trying to build a Utility script which would call each script
example ::
========
1) uni.sh
2) uni2.sh
3)uni3.sh
when i run the Util script it will come as a menu ,, once i press 1 it will call the first shell script and runs it ..... (10 Replies)
Discussion started by: raghav1982
10 Replies
6. Shell Programming and Scripting
Hi,
I am facing difficulties in selecting the contents between two delimiters when there is a new line occurs..
Eg:
>more sample.txt
abcd -- this is the first line %
efgh-- this is the
second line and not
able to print %
ijkl -- this is the 3rd line %
when i search for abcd and... (8 Replies)
Discussion started by: Balaji PK
8 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
saferm is a replacement for the rm utility. Rather than removing files, it move files in a sub directoy called".saferm" in the user's home directory. If "~/.saferm" doesn't exist, it is automatically created. The -l options lists the ... (3 Replies)
Discussion started by: Joey12
3 Replies
8. OS X (Apple)
I am a beginner, trying to get basic background utilities like at and cron to work on mac os x.
I am typing the following at the prompt:
at now + 1 minute
open -a textedit
^D
nothing happens at the appointed time.
What to change? (7 Replies)
Discussion started by: sakurashinken
7 Replies
9. Solaris
iam withdrawing this thread , It was my mistake I didn't read the code properly (0 Replies)
Discussion started by: boncuk
0 Replies
10. Shell Programming and Scripting
We have lftp command inside shell file. which is intern calling .cfg file for transferring the file from one server to other.
Below command to not working.
lftp -e "set net:max-retries 1; set net:reconnect-interval-base 1; put -E -O /destinationdir/inbox/ /sourcedir/test.txt; bye" -u... (4 Replies)
Discussion started by: johnsnow
4 Replies
LEARN ABOUT DEBIAN
pagesjaunes
PAGESJAUNES(1p) User Contributed Perl Documentation PAGESJAUNES(1p)
NAME
pagesjaunes - Lookup phones numbers from www.pagesjaunes.fr
SYNOPSIS
pagesjaunes [options ...]
Options:
-activite -business : Business type
-nom -name : Name
-prenom -firstname : First name
-localite -town : Town
-departement -district : Dept district or Region
-useragent : String to be passed as User-Agent header
(this may be needed to bypass user-agent detection)
-fast : Submit the request directly without querying the form
-separator : Character used to separate the fields (default ' ')
-limit : Maximum number of results returned
-english : Use the pagesjaunes.fr english interface
-quiet : Turn off error messages display
-help : Brief help message
-man : Full documentation
-version : Display version number
You must provide the localite/town option, and either activite/business or nom/name option. The prenom/firstname option is ignored if the
localite/town option is set.
OPTIONS
-activite or -business
Activity or business type you're looking for. This is a mandatory switch if you don't specify the -name or -nom switches.
-nom or -name
Name of the person or company you're looking for. Note that the search is done with a fuzzy match.
-prenom or -firstname
First name of the person you're looking for. This option is ignored if the -activite or -business are set.
-adresse or -address
Address of the person you're searching for.
-localite or -town
Name of the town.
-department or -district
Department district or Region you're searching in.
-separator
Character used to separate fields in the result set. Default is a tabulation character.
-useragent
The default user-agent string passed to the www.pagesjaunes.fr site is ""WWW::Search::Pagesjaunes/x.xx" where x.xx is the version
of the module.
Sometimes, it is needed to change it to other user-agent strings.
-limit Maximum number of entries returned. Default is 50. If you set it to 0 or a negative number, it will return all the entries found.
-english
Use the english interface of pagesjaunes.fr. This means that you can enter business types in english (i.e. 'plumber' instead of
'plombier'), and error messages will be displayed in english.
-quiet No error messages are printed when this switch is on
-help Print a brief help message and exits.
-man Prints the manual page and exits.
-version
Prints the version of the script and exits.
DESCRIPTION
This script provides name, phone number and addresses of French telephone subscribers by using the http://www.pagesjaunes.fr directory and
the WWW::Search::Pagesjaunes module.
COPYRIGHT
Please read the Publisher information of <http://www.pagesjaunes.fr> available at the following URL:
http://www.pagesjaunes.fr/pj.cgi?html-=commun/avertissement.html&lang=en
<http://www.pagesjaunes.fr/pj.cgi?html-=commun/avertissement.html&lang=en>
This script is Copyright (C) 2002, Briac Pilpre
This script is free software; you can redistribute it or modify it under the same terms as Perl itself.
AUTHOR
Briac Pilpre <briac@cpan.org>
perl v5.12.4 2011-11-02 PAGESJAUNES(1p)