Sponsored Content
Top Forums Shell Programming and Scripting Using "sed" to update RECURSIVELY a value within a directory in a Red Hat Machine Post 302330810 by mehdi1973 on Thursday 2nd of July 2009 10:16:08 AM
Old 07-02-2009
Thank you so much, i tried it AND IT WORKS, THATS GREAT Smilie
 

7 More Discussions You Might Find Interesting

1. Red Hat

"SCRYPT" command in RED HAT 9

Hello, I wanted to simple command to encrypt a file. Using google I got a command "crypt". I could test it very well on Sun solaris. My red hat system says "command not found".Can you please tell me if I can find that package on the cd!!! (2 Replies)
Discussion started by: nsharath
2 Replies

2. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

3. Red Hat

"ERROR : failed to mount nfs source" Red Hat Kickstart

Hi There, I have been googling for this error and try solution provided but still not avail to resolve Kickstart Issue. Any expert have encounter this problem? Thanks. Regards, Regmaster (4 Replies)
Discussion started by: regmaster
4 Replies

4. Programming

How to do a "sed-like" update command in mysql?

Dear mates, imagine a table with only one column and 10 rows containing 5 yahoo.de and 5 gmail.com email addressess. mail1@yahoo.de mail2@yahoo.de mail3@yahoo.de mail4@yahoo.de mail5@yahoo.de mail1@gmail.com mail2@gmail.com mail3@gmail.com mail4@gmail.com mail5@gmail.com How could I... (2 Replies)
Discussion started by: pseudocoder
2 Replies

5. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

6. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

7. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
GEM2DEB(1)																GEM2DEB(1)

NAME
gem2deb - converts Rubygems' .gem file into Debian package SYNOPSIS
gem2deb [OPTIONS] GEMNAME (to download the gem with gem fetch) gem2deb [OPTIONS] GEMFILE (to use a local .gem file) DESCRIPTION
gem2deb converts the gem into a Debian source package, and then will attempt to build it. The process is made of several steps. First, gem2deb converts the gem file to a tar.gz archive containing a metadata.yml file with the Gem specification. This is equivalent to what gem2tgz does. Then, gem2deb unpacks the tar.gz archive and prepares a Debian source package, guess many of the defaults from the files included in the archive, or the Gem specification. This is equivalent to what dh-make-ruby does. gem2deb cannot determine all parameters for obvious reasons. It is recommended to search for the "FIXME" string in the debian/ directory. The generated Debian source package uses dh_ruby to build the package. Finally, gem2deb tries to build the source and binary packages using dpkg-buildpackage. OPTIONS
-t, --only-tarball Stop after creating the tar.gz archive. -s, --only-source-dir Stop after preparing the Debian source package directory (do not attempt to build the package). -S, --only-debian-source Only build a Debian source package (do not build binary packages). -p PACKAGE, --package PACKAGE Specify package name (default: ruby-*). Passed to dh-make-ruby. See dh-make-ruby(1). --ruby-versions VERSIONS Ruby versions to build the package for (default: all). Passed to dh-make-ruby. See dh-make-ruby(1). -h, --help Displays gem2deb usage information. -v, --version Displays gem2deb version information. HOW THE .GEM ->; .TGZ CONVERSION WORKS A gem named mygem-0.1.0.gem is converted in a tarball with (approximately) the following steps: mkdir mygem-0.1.0 cd mygem-0.1.0 tar xfm /absolute/path/to/mygem-0.1.0.gem tar xzfm data.tar.gz zcat metadata.gz > metadata.yml rm -f data.tar.gz metadata.gz cd .. tar czf mygem-0.1.0.tar.gz mygem-0.1.0 rm -rf mygem-0.1.0 The generated tarball has the following properties: Files It contains all the files the gem contains. Metadata It contains the gem metadata ends up in a file named ``metadata.yml`` inside the mygem-0.1.0 directory. SEE ALSO
dh_ruby(1) COPYRIGHT AND AUTHORS
Copyright (c) 2011, Lucas Nussbaum <lucas@debian.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. 2012-03-06 GEM2DEB(1)
All times are GMT -4. The time now is 01:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy