I am having trouble understanding why these two commands differ with one producing the desire results and the other not. An example:
I am truly confused at why "re.sub" doesnt perform a positive lookbehind that re.search can do. It appears to be doing the opposite with the same regex. What is the difference?
Last edited by metallica1973; 01-27-2016 at 07:11 PM..
Okay, so I have had this problem on openSUSE, and Debian systems now and I am hoping for a little help. I think it has something to do with Python but I couldn't find a proper Python area here.
I am trying to redirect the output of "ssh suse-server 'python -V'" to a file. It seems that no matter... (3 Replies)
I am back at it with Python and have run into a little stupid hurdle. My goal is to simply search for the GeoIP.dat database and add the path to a couple of variables. So for example:
geopath=os.system('find /usr/share -iname GeoIP.dat')
geobase = pygeoip.GeoIP(geopath, pygeoip.MEMORY_CACHE)... (3 Replies)
I need to compare the output files in a directory for sftp, looking through a mask.
Return the full file name.
Eg.
I have a file named locally:
test.txt
I must check through sftp, if a file with the following name:
test_F060514_H173148.TXT
My idea is for the filename to a... (0 Replies)
I am working on requirement on spreadsheet in python scripting.
I have a spreadsheet containing cell values and with background color.
I am able to read the value value but unable to get the background color of that particular cell.
Actually my requirement is to read the cell value along... (1 Reply)
Hello all,
I have a verilog file as following (part of it):
old.v:
bw_r_rf16x32 AUTO_TEMPLATE (
1957 // .rst_tri_en (mem_write_disable),
1958 .rclk (clk),
1959 .bit_wen (dva_bit_wr_en_e),
1960 .din ... (5 Replies)
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
I have a list as follows:
From this i need to grep the element using keyword as "primary" and return output as
12:13-internet-wifi-primary
i used as follows
if (i <= (len(system_info))):
ss = system_info
print... (5 Replies)
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
LEARN ABOUT CENTOS
grub2-mkimage
GRUB-MKIMAGE(1) General Commands Manual GRUB-MKIMAGE(1)NAME
grub-mkimage -- Make a bootable GRUB image.
SYNOPSIS
grub-mkimage [-c | --config=FILE] [-C | --compression=(xz,none,auto)]
[-d | --directory=DIR] [-k | --pubkey=FILE]
[-m | --memdisk=FILE] [-n | --note] [-o | --output=FILE]
[-O | --format=FORMAT] [-p | --prefix=DIR]
[-v | --verbose] MODULES
DESCRIPTION
grub-mkimage builds a bootable image of GRUB.
OPTIONS --config=FILE
Embed FILE as the image's initial configuration file.
--compression=(xz,none,auto)
Use one of xz, none, or auto as the compression method for the core image.
--directory=DIR
Use images and modules from DIR. The default value is /usr/lib/grub/<platform>.
--pubkey=FILE
Embed the public key FILE for signature checking.
--memdisk=FILE
Embed the memdisk image FILE. If no -p option is also specified, this implies -p (memdisk)/boot/grub.
--note Add a CHRP NOTE section. This option is only valid on IEEE1275 platforms.
--output=FILE
Write the generated file to FILE. The default is to write to standard output.
--format=FORMAT
Generate an image in the specified FORMAT. Valid values are:
i386-coreboot, i386-multiboot, i386-pc, i386-pc-pxe, i386-efi, i386-ieee1275, i386-qemu, x86_64-efi, mipsel-yeeloong-flash,
mipsel-fuloong2f-flash, mipself-loongson-elf, powerpc-ieee1275, sparc64-ieee1275-raw, sparc64-ieee1275-cdcore,
sparc64-ieee1275-aout, ia64-efi, mips-arc, mipsel-arc, mipsel-qemu_mips-elf, mips-qemu_mips-flash, mipsel-qemu_mips-flash, mips-
qemu_mips-elf
--prefix=DIR
Set prefix directory. The default value is /boot/grub.
--verbose
Print verbose messages.
MODULES
Include MODULES.
SEE ALSO
info grub
Wed Feb 26 2014 GRUB-MKIMAGE(1)