01-03-2006
Thank you!
vino,
Thank you very much.
Steven
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
say i would like to check if the file is existed before i use rm command. How can i do it?
i know if i can use find, but i would like to have a good interface (in a shell script)
thks (3 Replies)
Discussion started by: gusla
3 Replies
2. Shell Programming and Scripting
Hi there,,
how to check if directory/file exist using c/c++ under unix/linux? I can use access() under Window MFC. Thanks.
Steven (1 Reply)
Discussion started by: steven88
1 Replies
3. Shell Programming and Scripting
We recieve some logs on our windows box via FTP on a daily basis, in the same directory. I would like to check for missing logs files and add their name to a text file.
Something like...
Check if C:\logs\file1_currentdate exists (if not, add file1_currentdate to... (1 Reply)
Discussion started by: SunnyK
1 Replies
4. Shell Programming and Scripting
There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script.
#! /bin/ksh
ARRAY_DIRECTORIES="/c/dev/custom/bin"
ARRAY_DIRECTORIES="/c/dev/db/custom/src"
ARRAY_ENV="remoteName200"
ARRAY_ENV="remoteName201"... (2 Replies)
Discussion started by: weonpc
2 Replies
5. Shell Programming and Scripting
Hi,
I want to write a shell script to check whether a directory (say A) is existing in a given location and if it is not, create it. (3 Replies)
Discussion started by: sabya
3 Replies
6. Shell Programming and Scripting
I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx
ll -d /abc > /dev/null 2>&1
if
then
echo "the directory exist !!"
... (7 Replies)
Discussion started by: ust
7 Replies
7. Shell Programming and Scripting
Hi
Does anybody know how I can check if a file exists
i.e. see bellow, this doesn't work by the way and if tried countless variations on this
file1=$one/file111.txt
if
then
echo "Present"
else
echo "Not present"
fi
result :
Not present
(file is already present, eventhough its... (3 Replies)
Discussion started by: gksenthilkumar
3 Replies
8. Shell Programming and Scripting
Hi,
I am trying to create a bash script which will check if file exist then remove that file else do nothing. I have to do same process for three files in same script. I have written code for one file and trying to run it.
if
then
rm -r /user1/abc/File1
fi
When I run this code it... (1 Reply)
Discussion started by: palak08
1 Replies
9. Shell Programming and Scripting
Hi,
I created following script to check if file exist:
#!/bin/bash
SrcDir=$1
SrcFileName=$2
SrcTimePeriod=$3
if ;then
echo 1
else
echo 0
fi
I ran it like: /apps/Scripts/FileExist.sh /apps/Inbox file1 2nd_period_2010
Even file exist at that location, my above command is... (4 Replies)
Discussion started by: palak08
4 Replies
10. Shell Programming and Scripting
HI folks,
can any one tell me how to check whether the file is existed in a directory or not .
let me tell you my requirement : if the file is existed i should display a one message or else i have to send a mail ..
i have the mail logic .. but I'm failed to check file existence .. please... (5 Replies)
Discussion started by: sravan008
5 Replies
LEARN ABOUT DEBIAN
pod::tree::perlmap
Pod::Tree::PerlMap(3pm) User Contributed Perl Documentation Pod::Tree::PerlMap(3pm)
NAME
Pod::Tree::PerlMap - map names to URLs
SYNOPSIS
$perl_map = new Pod::Tree::PerlMap;
$perl_map->add_page ($name, $file);
$perl_map->add_func ($func, $file);
$perl_map->force_func(0);
$perl_map->force_func(1);
$perl_map->set_depth ($depth);
($base, $page, $section) = $perl_map->map($base, $page, $section);
DESCRIPTION
"Pod::Tree::PerlMap" maps L<> markups to URLs.
The "Pod::Tree::Perl*" translators make entries in the map. "Pod::Tree::HTML" uses the map to translate links before it emits them.
METHODS
$perl_map->"add_page"($name, $file)
Map $name to $file. $name is the name of a POD, as used in L<> markups. $file is the path to the HTML file that is the target of the
link.
$perl_map->"add_func"($func, $file)
Maps $func to $file. $func is the name of a function described in perlfunc.pod. $file is the name of the HTML file where it is
described.
$perl_map->"force_func"($state)
Controls interpretation of links of the form L<func>.
If $state is true, calls to "map" will interpret L<func> as L<perlfunc/func>.
If $state is false, calls to "map" will interpret L<func> normally.
$perl_map->"set_depth"($depth)
Informs $perl_map of the depth of the referring page in the HTML directory tree. $perl_map needs to know this so that it can construct
relative links.
($base, $page, $section) = $perl_map->"map"($base, $page, $section)
Remaps a link.
$base is the base URL for the HTML page, if any. $page is the page given in an L<> markup. $section is the section given in the L<>
markup, if any.
"map" returns a new $base, $page, and $section that can be used to construct a link to the HTML page.
REQUIRES
Nothing.
EXPORTS
Nothing.
AUTHOR
Steven McDougall, swmcd@world.std.com
COPYRIGHT
Copyright (c) 2000 by Steven McDougall. This module is free software; you can redistribute it and/or modify it under the same terms as
Perl.
perl v5.10.1 2004-10-11 Pod::Tree::PerlMap(3pm)