From f450ce75b754fb869b34433c0126f7bb592b141b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 29 Jun 2009 10:09:13 +0100 Subject: Generated code for 'wc_*' commands. --- perl/lib/Sys/Guestfs.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'perl/lib') diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 83fbbb10..8871b68e 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -1391,6 +1391,21 @@ using L. You should call this after C<$h-Elaunch> to wait for the launch to complete. +=item $chars = $h->wc_c ($path); + +This command counts the characters in a file, using the +C external command. + +=item $lines = $h->wc_l ($path); + +This command counts the lines in a file, using the +C external command. + +=item $words = $h->wc_w ($path); + +This command counts the words in a file, using the +C external command. + =item $h->write_file ($path, $content, $size); This call creates a file called C. The contents of the -- cgit