Hi All,
I want to delete the contents of few files which are really huge in size.
How the same can be done by using sed. Is there any other alternative to sed.
Thanks in advance (10 Replies)
Every day a new .zip file is uploaded to a folder and at mid-night the zip file is to be extracted into a /data/ folder, inside a date-named folder.
# This should extract the contents of a zip file into the /data/ folder into a date based folder
/usr/bin/unzip -a -o... (15 Replies)
In our shop, we have a situation where a log file from our interface engine software has begun maxing out in file size (reaching the 32-bit "2147483647" limit). Currently, the only way to rectify this is to stop the interface and restart it, which generates a new log. Easy enough, but the... (6 Replies)
Hi,
I have a script which will use an input.txt file as an input file.
I am providing data to this input file in the script and once the script is executed, I want to clear all the contents of this file as during the second time use of this script, I'll be appending the data in this input... (5 Replies)
Hi guys,
How to write terminal contents into a file in Unix operating system
Actually I created GUI by using Gtk2-perl. I want to display data on GUI whatever the contents writing on terminal. So which command I have to use and where that command to be run I mean in shell script or Perl... (2 Replies)
Hi
How to completely delete directory with all it contents
I try to use rmdir -r but it give error
Thanks
---------- Post updated at 03:10 AM ---------- Previous update was at 02:52 AM ----------
Hi all
I got the solution for my thread
i use mkdir with the option -p
Thanks (1 Reply)
Hi,
I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility?
Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies
LEARN ABOUT PHP
ob_get_clean
OB_GET_CLEAN(3) 1 OB_GET_CLEAN(3)ob_get_clean - Get current buffer contents and delete current output bufferSYNOPSIS
string ob_get_clean (void )
DESCRIPTION
Gets the current buffer contents and delete current output buffer.
ob_get_clean(3) essentially executes both ob_get_contents(3) and ob_end_clean(3).
The output buffer must be started by ob_start(3) with PHP_OUTPUT_HANDLER_CLEANABLE flag. Otherwise ob_get_clean(3) will not work.
RETURN VALUES
Returns the contents of the output buffer and end output buffering. If output buffering isn't active then FALSE is returned.
EXAMPLES
Example #1
A simple ob_get_clean(3) example
<?php
ob_start();
echo "Hello World";
$out = ob_get_clean();
$out = strtolower($out);
var_dump($out);
?>
The above example will output:
string(11) "hello world"
SEE ALSO ob_get_contents(3), ob_start(3).
PHP Documentation Group OB_GET_CLEAN(3)