Hi I need to help on finding the below pattern using sed
<b><a href="/home/document.do?assetkey=x-y-abcde-1&searchclause=photo">
and replace as below in the same line on the index file.
<b><a href="/abcde.html">
thx in advance.
Mari (5 Replies)
Hello All,
I have a string "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031", and I just want to extract LLSV1, but I dont get the expected result when using the sed command below.
# echo "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031" | awk '{print... (4 Replies)
Hi ,
My file have data like
4:ALMOST NEVER PR 1925836
5:NEVER PR W DDA 5857610
6:NEVER PR WO DDA 26770205
but i want to replace the spaces before last numric digits out put should be like this
4:ALMOST NEVER PR=1925836
5:NEVER PR W DDA=5857610
6:NEVER PR WO... (7 Replies)
I have a file with multiple lines like this:
<junk><PATTERN><junk><PATTERN><junk>
<junk><PATTERN><junk><PATTERN><junk><PATTERN><junk>
Note that
1. There might be variable number occurrences of PATTERN in a line.
2. <> are just placeholders, they do not form part of the pattern.
I need... (4 Replies)
Hi all,
I'm trying to replace a pattern/string in about 100 files with the filename using following commands but getting nowhere:
for f in *.fa; do sed "s/^>.*/>$f/g" $f > $f_v1.fa; done
for f in *.fa; do sed 's/^>.*/>`echo $f`/' > $fa_v1.fa; done
Basically I want to change any line... (5 Replies)
I've got a file like so:
...lots of lines, etc.
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.123 255.255.255.0"
...lots of lines, etc.
I want to sed find/replace the IP address in the second line, whatever it is, with a new IP address, but I don't want to touch the first line.... (5 Replies)
Hi Guys!
Unix newbie here!
Have a requirement for which I have been scouting the forums for a solution but has been out of luck so far :(
I have a file which contains the following:-
TEST1|TEST2|"TEST3|1@!2"|TEST5
My sed command should result in either one the following output:-... (6 Replies)
I have a file with multiple lines, all in the same format. For each line, I need to replace the sequence of digits after the last : with a new value, but keep the single quote at the end of the line.
Example:
Input: ( two lines of file)
Name: 'text1:200/text2:1.2.3.4'
Name2:... (19 Replies)
Hi,
i want to replace the following lines in such a way that if the word merge exists in first column it must replace the 3rd column as M and if parse exists in first column then the last column must P, if neither it must mark it as X. I have tried the solution using awk, but it is saying... (6 Replies)
Discussion started by: charlie87
6 Replies
LEARN ABOUT DEBIAN
ruby-build
RUBY-BUILD(1)RUBY-BUILD(1)NAME
ruby-build - compile and install Rubies
SYNOPSIS
ruby-build [-v|--verbose] [-k|--keep] definition prefix
ruby-build --definitions
ruby-build --version
ruby-build [-h|--help]
rbenv install [-k|--keep] definition
DESCRIPTION
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
ruby-build downloads, builds and installs the Ruby version specified in a definition into a prefix directory. Definitions can be chosen
from the list of installed definitions or by specifying a file path for a definition.
rbenv(1) users can also use the provided rbenv install command, which installs Rubies into the rbenv directory.
OPTIONS --definitions
List available definitions.
-k, --keep
Don't delete source code after installation.
-v, --verbose
Display compiler messages on standard output.
--version
Show ruby-build version and exit.
-h, --help
Show usage information and exit.
EXAMPLES
Install Ruby 1.9.3 (MRI, patch level 0) to ~/rubies/mri-1.9.3
$ ruby-build 1.9.3-p0 ~/rubies/mri-1.9.3
Install Ruby Enterprise Edition 1.8.7 (patch level 2011.03) for rbenv(1):
$ rbenv install ree-1.8.7-2011.03
Install Ruby from a custom definition into ~/your-ruby:
$ rbenv install /path/to/your/own/ruby/definition ~/your-ruby
ENVIRONMENT
CC Sets the path to the C compiler.
CONFIGURE_OPTS
Options that are passed to configure when building a Ruby.
MAKE_OPTS
Options that are passed to make when building a Ruby.
MAKEOPTS
Used instead of MAKE_OPTS when MAKE_OPTS is not defined.
TMPDIR Sets the location where ruby-build stores temporary files.
RUBY_BUILD_BUILD_PATH
Sets the location in which sources are downloaded and built.
AUTHORS
ruby-build is developed by Sam Stephenson <sam@37signals.com>.
This man page was written for the Debian GNU/Linux distribution by Sebastian Boehm <sebastian@sometimesfood.org> but may be used by others.
SEE ALSO rbenv(1)
June 2012 RUBY-BUILD(1)