Search found 94 matches

by afewgoodman
2020/06/10 01:17:46
Forum: CentOS 7 - General Support
Topic: How to insert # with sed
Replies: 7
Views: 380

Re: How to insert # with sed

Ok, the lines are: copy_guest_tools() { copy_guest_tools and you want to match the line that does not have parenthese after the tools? What do you get with: sed "s/^\(copy_guest_tools[^(]\)/# \1/" Hi jlehtone, Sorry for confusing you. I hope to only add # to in front of copy_guest_tools in next lin...
by afewgoodman
2020/06/09 08:48:58
Forum: CentOS 7 - General Support
Topic: How to insert # with sed
Replies: 7
Views: 380

Re: How to insert # with sed

We can't see what is in your file. How could we possibly suggest a regexp that matches (only) the correct line? Hi jlehtone, I add snippet of my shell script. #!/bin/sh copy_guest_tools() { echo "Copying $GUESTTOOLS" echo "Initiallizing and fetching submodule $GUESTTOOLS" git submodule init git sub...
by afewgoodman
2020/06/09 01:21:31
Forum: CentOS 7 - General Support
Topic: How to insert # with sed
Replies: 7
Views: 380

Re: How to insert # with sed

Thraex wrote:
2020/06/08 12:42:25
Should be something like:

sed -i '/^copy_old_man/s//#&/' /path/to/file

I'd test with sed -e first though to be safe.
Hi,
Thanks to reply, but it doesn't work. sorry. it add # to function definition of copy_old_man. I hope add # calling copy_old_man in the create_man, not definition.

BR.
by afewgoodman
2020/06/08 08:12:51
Forum: CentOS 7 - General Support
Topic: How to insert # with sed
Replies: 7
Views: 380

How to insert # with sed

Hi, I hope to insert # to starting of copy_old_man the below the shell script. copy_old_man is a function which defined in the earlier and many functions are defined in this shell script also. [BEFORE] create_man () { copy_old_man . . } [AFTER] create_man () { # copy_old_man . . } BR.
by afewgoodman
2020/05/28 05:17:46
Forum: CentOS 8 - General Support
Topic: Error in rpmbuild
Replies: 2
Views: 389

Re: Error in rpmbuild

Hi

I resolve this issue by adding:

%global debug_package %{nil}

BR. :D
by afewgoodman
2020/05/27 06:38:57
Forum: CentOS 8 - General Support
Topic: Error in rpmbuild
Replies: 2
Views: 389

Error in rpmbuild

Hi I am trying to create simple rpm with rpmbuild in CentOS 8.1. I can create rpm file in the CentOS 7.7 without issue, but CentOS 8.1. I attached rpmbuild.tar which I used in the my home directory. [bchoi@localhost SPECS]$ rpmbuild --sign -bb hello.spec + umask 022 + cd /home/bchoi/rpmbuild/BUILD +...
by afewgoodman
2020/04/27 02:02:55
Forum: CentOS 7 - General Support
Topic: Removing "rhsm" and "rhn" packages
Replies: 2
Views: 106

Re: Removing "rhsm" and "rhn" packages

Hi Trevor

Many thanks !!!
by afewgoodman
2020/04/25 06:31:27
Forum: CentOS 7 - General Support
Topic: Removing "rhsm" and "rhn" packages
Replies: 2
Views: 106

Removing "rhsm" and "rhn" packages

Hi, If I try to remove following packages, does it damage current system? [bchoi@localhost centos-updates-7.7]$ yum list available | grep rhsm librhsm.x86_64 0.0.3-2.el7_6 extras librhsm-devel.x86_64 0.0.3-2.el7_6 extras python-rhsm.x86_64 1.19.10-1.el7_4 base python-rhsm-certificates.x86_64 1.19.10...
by afewgoodman
2020/04/25 06:26:08
Forum: CentOS 7 - General Support
Topic: No new yum updates on CentOS 7
Replies: 9
Views: 494

Re: No new yum updates on CentOS 7

Hi,

Many thanks for kindly explanation.

Have a nice weekend, guys.

BR.
by afewgoodman
2020/04/24 07:45:04
Forum: CentOS 7 - General Support
Topic: No new yum updates on CentOS 7
Replies: 9
Views: 494

Re: No new yum updates on CentOS 7

For the lifetime of 7.7 the mirrors have directory 7.7-1908 that contains repositories "base", "updates", "extras", "cr", etc. Mirrors also have a symlink "7" that points to "7.7-1908". Yum looks the repositories from the "7". When 7.8 gets out the mirrors will populate directory 7.8-2003 and updat...

Go to advanced search