Hi,
I want to change a particular string in a file with another string. This is part of a larger script file. I m using SED for this purpose:
sed -e 's/hostname.domainname/${HOST}.${DOMAIN}/g' $sed_file>$tmp_file
Where the occurance hostname.domainname has to be replaced with the... (4 Replies)
Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line.
... (1 Reply)
my script:
amount1=`tail /tmp/file1.txt`
amount2=`tail /tmp/file2.txt`
sed -e 's/'${amount2}'/'${amount1}'/g' filename1 > filename2
what did i do wrong ? i just want to replace amount1 with amount2 value. (2 Replies)
I'm trying to change a "." in a file name with a "_"
I have tried;
sed -e 's/./_/g'
However this then replaces the entire filename with a load of "_"
For example;
ls /usr/local/feed/service/customers/test1/configs/test1.httpsend | awk -F/ '{print $9}' | tr "" "" | sed -e "s/./_/g"
... (2 Replies)
Hello,
I have a comman separated file lets day data.txt in following format
,:000002 CH XIN9I.INDX, 34.7534909645,:000002 CH,:Index XIN9I.INDX
,:000063 CH XIN9I.INDX, 6.3062924781,:000063 CH,:Index XIN9I.INDX
,:000776 CH XIN9I.INDX, 2.7001954832,:000776 CH,:Index XIN9I.INDX
I would like... (9 Replies)
Hi,
I have values in a file at Place $1 as AmericanDollar, AustralianDollar, Singapore1Dollar and so on on various rows. I want to replace Dollar with Pound for all those records where no numeric character is present in the string. Means in above mentioned values 'Singapore1Dollar' should not be... (11 Replies)
Hi,
i have a file as give below
>cat sample_file
param1 val1 2012-06-19
##there can be one or more space after 2012-06-19 in the above file
i want to replace val1 with a with value passed through a variable...
below is the command i tried
>parval='param1 val2'
>par1=param1
>sed... (3 Replies)
How can we empty or replace with null, following block of code (within the php quotes including the quotes) from inside a file.
*** some other data above this code
<?
#317008#
... (5 Replies)
I have a file whose output words are always like this:
aaaa
bbbb
cccc
dddd. Trying to arrange the data so that there are 2 columns such that the 1st word become the 1st column like this:
aaaa aaaa
aaaa bbbb
aaaa cccc
aaaa dddd Trying to use awk... (8 Replies)
Discussion started by: jimmyf
8 Replies
LEARN ABOUT SUSE
bootloader::path
Bootloader::Path(3) User Contributed Perl Documentation Bootloader::Path(3)NAME
Bootloader::Path - abstraction of path constants
PREFACE
This package provides path for configuration files. It is used to enable testing on created chroot. It is used only for internal purpose.
SYNOPSIS
"use Bootloader::Path;"
"$path = Bootloader::Path::Prefix ($path);"
"$path = Bootloader::Path::Logname();"
"$path = Bootloader::Path::Fstab();"
"$path = Bootloader::Path::Sysconfig();"
"$path = Bootloader::Path::Grub_menulst();"
"$path = Bootloader::Path::Grub_devicemap();"
"$path = Bootloader::Path::Grub_grubconf();"
"$path = Bootloader::Path::Grub_grub();"
"$path = Bootloader::Path::Elilo_conf();"
"$path = Bootloader::Path::Elilo_efi();"
"$path = Bootloader::Path::Elilo_elilo();"
"$path = Bootloader::Path::Lilo_lilo();"
"$path = Bootloader::Path::Lilo_conf();"
"$path = Bootloader::Path::Zipl_conf();"
"$path = Bootloader::Path::Zipl_zipl();"
DESCRIPTION
"$path = Bootloader::Path::Prefix ($);"
Add to absolute path prefix. Only internal function. Allways retuns correct value.
"$path = Bootloader::Path::Logname();"
Gets logname path.
"$path = Bootloader::Path::Fstab();"
Gets fstab path.
"$path = Bootloader::Path::Sysconfig();"
Gets path for bootloader sysconfig.
"$path = Bootloader::Path::Grub_menulst();"
Gets path for grub configuration file menu.lst.
"$path = Bootloader::Path::Grub_devicemap();"
Gets path for grub configuration file device.map.
"$path = Bootloader::Path::Grub_grubconf();"
Gets path for grub configuration file grub.conf (this file contains commands for initialize bootloader).
"$path = Bootloader::Path::Grub_grub();"
Gets path for grub binary
"$path = Bootloader::Path::Elilo_conf();"
Gets path of elilo configuration file.
"$path = Bootloader::Path::Elilo_efi();"
Gets path to efi directory.
"$path = Bootloader::Path::Elilo_elilo();"
Gets path to elilo binary.
"$path = Bootloader::Path::Lilo_lilo();"
Gets path to lilo(or powerlilo) binary.
"$path = Bootloader::Path::Lilo_conf();"
Gets path to lilo(or powerlilo) configuration file.
"$path = Bootloader::Path::Zipl_conf();"
Gets path to zipl configuration file.
"$path = Bootloader::Path::Zipl_zipl();"
Gets path to zipl binary.
perl v5.12.1 2010-05-14 Bootloader::Path(3)