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. --- python/guestfs.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'python/guestfs.py') diff --git a/python/guestfs.py b/python/guestfs.py index 23aef9c2..01318ce1 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1727,3 +1727,21 @@ class GuestFS: """ return libguestfsmod.mkdtemp (self._o, template) + def wc_l (self, path): + u"""This command counts the lines in a file, using the "wc + -l" external command. + """ + return libguestfsmod.wc_l (self._o, path) + + def wc_w (self, path): + u"""This command counts the words in a file, using the "wc + -w" external command. + """ + return libguestfsmod.wc_w (self._o, path) + + def wc_c (self, path): + u"""This command counts the characters in a file, using the + "wc -c" external command. + """ + return libguestfsmod.wc_c (self._o, path) + -- cgit