Hi,
I'm trying to write a script that reads filenames from a file and use these filenames in a loop. The filenames are all on one line and the problem is that these filenames have wildcards like * and braces like in them.
Right now what I'm doing is something like this:
echo "reading from... (0 Replies)
Hi,
We have a file called applcust.txt where we keep records of our customizations in the following format. We want to verify whether the file, which is in 3rd column in this file is there in another file called patch999999.log to find out if any of our customization has got overwritten by the... (2 Replies)
I have about 35,000 files in one directory. Here I have to write a ksh to take only the filenames of 500 files at a time and put them into a new file. Can anyone please help me.
Thank you. (8 Replies)
Hello all -
I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Hi All,
When i give ls -ltr my filenames looks like this:
Filename Pattern: Abc_Def_mmddyyyyHHmm.csv
$ ls -ltr
Jun 05 04:30 Abc_Def_060520111245.csv
Jun 05 08:40 Abc_Def_071220121458.csv
Jun 06 03:30 Abc_Def_071220111458.csv
Jun 06 04:25 Abc_Def_060620110439.csv
Jun 07 04:37... (12 Replies)
Hi i have a command in windows which captures the filenames with the same pattern and route it to another file.
for example filetest_20110921, filetest_20110922,filetest_20110923 etc
I would like to know the command in UNIX/LINUX for the same. The command which i am using in Windows is
... (12 Replies)
I need to get the names of files which are starting with a string testfile. Also i want to create a XML file in the same location and write these file names into the XML.
Ex:
<path>
<dir>
<file>testfile1</file>
</dir>
<dir>
<file>testfile2</file>
</dir>... (4 Replies)
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
Hello Unix experts:
I have dir where few files are there, i want to sort these files and write the output to some other file but i need filenames with filepath too
eg:
i have filenames like
010020001_S-FOR-Sort-SYEXC_20171218_094256_0004.txt
so i want to sort my files on first 5 fields of... (2 Replies)
Discussion started by: gnnsprapa
2 Replies
LEARN ABOUT REDHAT
http::status
HTTP::Status(3) User Contributed Perl Documentation HTTP::Status(3)NAME
HTTP::Status - HTTP Status code processing
SYNOPSIS
use HTTP::Status;
if ($rc != RC_OK) {
print status_message($rc), "
";
}
if (is_success($rc)) { ... }
if (is_error($rc)) { ... }
if (is_redirect($rc)) { ... }
DESCRIPTION
HTTP::Status is a library of routines for defining and classifying HTTP status codes for libwww-perl. Status codes are used to encode the
overall outcome of a HTTP response message. Codes correspond to those defined in RFC 2616 and RFC 2518.
CONSTANTS
The following constant functions can be used as mnemonic status code names:
RC_CONTINUE (100)
RC_SWITCHING_PROTOCOLS (101)
RC_PROCESSING (102)
RC_OK (200)
RC_CREATED (201)
RC_ACCEPTED (202)
RC_NON_AUTHORITATIVE_INFORMATION (203)
RC_NO_CONTENT (204)
RC_RESET_CONTENT (205)
RC_PARTIAL_CONTENT (206)
RC_MULTI_STATUS (207)
RC_MULTIPLE_CHOICES (300)
RC_MOVED_PERMANENTLY (301)
RC_FOUND (302)
RC_SEE_OTHER (303)
RC_NOT_MODIFIED (304)
RC_USE_PROXY (305)
RC_TEMPORARY_REDIRECT (307)
RC_BAD_REQUEST (400)
RC_UNAUTHORIZED (401)
RC_PAYMENT_REQUIRED (402)
RC_FORBIDDEN (403)
RC_NOT_FOUND (404)
RC_METHOD_NOT_ALLOWED (405)
RC_NOT_ACCEPTABLE (406)
RC_PROXY_AUTHENTICATION_REQUIRED (407)
RC_REQUEST_TIMEOUT (408)
RC_CONFLICT (409)
RC_GONE (410)
RC_LENGTH_REQUIRED (411)
RC_PRECONDITION_FAILED (412)
RC_REQUEST_ENTITY_TOO_LARGE (413)
RC_REQUEST_URI_TOO_LARGE (414)
RC_UNSUPPORTED_MEDIA_TYPE (415)
RC_REQUEST_RANGE_NOT_SATISFIABLE (416)
RC_EXPECTATION_FAILED (417)
RC_UNPROCESSABLE_ENTITY (422)
RC_LOCKED (423)
RC_FAILED_DEPENDENCY (424)
RC_INTERNAL_SERVER_ERROR (500)
RC_NOT_IMPLEMENTED (501)
RC_BAD_GATEWAY (502)
RC_SERVICE_UNAVAILABLE (503)
RC_GATEWAY_TIMEOUT (504)
RC_HTTP_VERSION_NOT_SUPPORTED (505)
RC_INSUFFICIENT_STORAGE (507)
FUNCTIONS
The following additional functions are provided. Most of them are exported by default.
status_message($code)
The status_message() function will translate status codes to human readable strings. The string is the same as found in the constant
names above. If the $code is unknown, then "undef" is returned.
is_info($code)
Return TRUE if $code is an Informational status code. This class of status code indicates a provisional response which can't have any
content.
is_success($code)
Return TRUE if $code is a Successful status code.
is_redirect($code)
Return TRUE if $code is a Redirection status code. This class of status code indicates that further action needs to be taken by the
user agent in order to fulfill the request.
is_error($code)
Return TRUE if $code is an Error status code. The function return TRUE for both client error or a server error status codes.
is_client_error($code)
Return TRUE if $code is an Client Error status code. This class of status code is intended for cases in which the client seems to have
erred.
This function is not exported by default.
is_server_error($code)
Return TRUE if $code is an Server Error status code. This class of status codes is intended for cases in which the server is aware that
it has erred or is incapable of performing the request.
This function is not exported by default.
BUGS
Wished @EXPORT_OK had been used instead of @EXPORT in the beginning. Now too much is exported by default.
libwww-perl-5.65 1999-11-22 HTTP::Status(3)