I want to perform a task on all the files in the current directory but I'd like to loop through them one at a time. How do I tell it to give me the first filename? (2 Replies)
Hi ..
I am having a file pointer .. it have declared some where tough to find out that ..Can we find out the filename associated with file pointer ...
i mean is there any function FILEPOINTER.filename() is there in c ??...
Thanks,
Arun (2 Replies)
hi
find /home -type f -atime +5
shows me files like :
home/test/aaa.txt
home/test/bbb.html
How can I get the file name
I mean only aaa.txt and bbb.html (19 Replies)
Can anybody let me know what following commands will do in perl
1.my $result = `/main/home/bin/iwex -l '$File1'`;
2.my $setcmd = "/main/home/bin/iwex -s \"$File2\" \"$File3\"";
where $File1 $File2 $File3 are regular files.
Please suggest something.
Ur welcome (4 Replies)
I am using the following code to read filename from the directory:
for i in ` ls $inputDir | grep $partialName*.csv`
do
echo $i
done
But the echo is giving me the following:
ls | grep cm_ctx*.csv instead of the full filename "cm_ctx_2009_07_15_17_18.csv"
Any ideas anyone? I... (2 Replies)
Hi,
I've got a large to task to do, which I've broken into three section. I'm just stuck on one of the sections.
I have to change the end of a filename from .txt to .doc in a directory. So if I have a directory called "folder1" and two files contained in it called "file1.txt" and "file2.txt",... (7 Replies)
In the Directory all the Files are following format.
Filename_yyyymmdd_numbers.txt
eg.
file_name_20120106_015802.txt .
I want to write the Shell script to rename all the file to
file_name.txt.in the directory.
Thanks
Mani (5 Replies)
Hi,
I have in the one folder file and directory that have same name. I need make diff from first directory where exists file in folder FOLDER/filename and second file where not exist folder, but FOLDER is filename. I use -N switch for create new file. Scripts report: Not a directory
Sample:... (2 Replies)
Hi All,
As i'm new to this i need help. I want to copy all the filenames in a directory and also it should get arange in the order recent modified. (2 Replies)
Dear all,
I would like to know how to move the downloaded files in differenent directories according to the name of the file?
i.e.
P10120111201_122013M.jpg
P10120120101_122013M.jpg
P10120120201_122013M.jpg
The first 4 charactors "P101" is the station name, 4-8 means year "2012",... (5 Replies)
Discussion started by: handsonzhao
5 Replies
LEARN ABOUT CENTOS
err_get_func
ERR_GET_LIB(3) OpenSSL ERR_GET_LIB(3)NAME
ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON - get library, function and reason code
SYNOPSIS
#include <openssl/err.h>
int ERR_GET_LIB(unsigned long e);
int ERR_GET_FUNC(unsigned long e);
int ERR_GET_REASON(unsigned long e);
DESCRIPTION
The error code returned by ERR_get_error() consists of a library number, function code and reason code. ERR_GET_LIB(), ERR_GET_FUNC() and
ERR_GET_REASON() can be used to extract these.
The library number and function code describe where the error occurred, the reason code is the information about what went wrong.
Each sub-library of OpenSSL has a unique library number; function and reason codes are unique within each sub-library. Note that different
libraries may use the same value to signal different functions and reasons.
ERR_R_... reason codes such as ERR_R_MALLOC_FAILURE are globally unique. However, when checking for sub-library specific reason codes, be
sure to also compare the library number.
ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are macros.
RETURN VALUES
The library number, function code and reason code respectively.
SEE ALSO err(3), ERR_get_error(3)HISTORY
ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are available in all versions of SSLeay and OpenSSL.
1.0.1e 2013-02-11 ERR_GET_LIB(3)