Dear Chaps,
What will I do if, I am not sure about the length of the file name, but only one thing that I want to remove only the last extension.
e.g. abcdXXXXXX.pqrXXXXX.asc (X is any character)
I want to trim only .asc (or,watever) so that resultant file name would be like... (1 Reply)
Hi,
I have a 6G log , which is unusual to read and I want to minimize it by removing some part on the upper portion( around 4GB). what should i do? can you please help me?
thanks. (1 Reply)
Hi,
I'm new to shell programming. Need some help in the following requirement:
I have a file origFile.txt with values:
origFile.txt
.00~ 145416.02~ xyz~ ram kishor
.35~ 765.76~ anh reid~ kishna kerry
Now each row in the file has value for 4 columns with "~" as... (7 Replies)
I am capturing the files in a directory to an array. I have 2 arrays with list of files in two different directories. Both the directories are supposed to have the same number of files and filenames.
I want to check that the same file exists in both the directories. After I capture the... (1 Reply)
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Hi All,
I have a file named as
FAB1_600015_CONRAD.A0_7XYZ12345.000_LT-SWET.01_LTPA25L_20110622-161429_07_WFR12345_20110622-161429_20110712-125228.data.dis
I want to generate a directory taking only the 7XYZ12345.000_WFR12345
The length and format of the Filename will be the same... (2 Replies)
Hi All,
I want to trim each columns leading & trailing (like sql trim function) of a ',' separated file..
I've a file like this..
manab , c gi
lucky , home
babu , maa
I want the output as
manab,c gi
lucky,home
babu,maa
A one liner would be a great help. (2 Replies)
How do i get the following output, irrespective of how many . 's i will have the file name.
Input:
FCBTexas_2013_12_31_16_V2.5_Masked.xml.filepart
Output:
FCBTexas_2013_12_31_16_V2.5_Masked.xml
Thank you. (6 Replies)
Discussion started by: Ariean
6 Replies
LEARN ABOUT PHP
apc_bin_dumpfile
APC_BIN_DUMPFILE(3) 1 APC_BIN_DUMPFILE(3)apc_bin_dumpfile - Output a binary dump of cached files and user variables to a fileSYNOPSIS
int apc_bin_dumpfile (array $files, array $user_vars, string $filename, [int $flags], [resource $context = NULL])
DESCRIPTION
Outputs a binary dump of the given files and user variables from the APC cache to the named file.
PARAMETERS
o $files
- The file names being dumped.
o $user_vars
- The user variables being dumped.
o $filename
- The filename where the dump is being saved.
o $flags
- Flags passed to the $filename stream. See the file_put_contents(3) documentation for details.
o $context
- The context passed to the $filename stream. See the file_put_contents(3) documentation for details.
RETURN VALUES
The number of bytes written to the file, otherwise FALSE if APC is not enabled, $filename is an invalid file name, $filename can't be
opened, the file dump can't be completed (e.g., the hard drive is out of disk space), or an unknown error was encountered.
SEE ALSO apc_bin_dump(3), apc_bin_load(3).
PHP Documentation Group APC_BIN_DUMPFILE(3)