Search Results

Search: Posts Made By: joeg1484
1,563
Posted By joeg1484
Thanks for your help! I used sed...
Thanks for your help! I used




sed 's/@\w\+\.\w\+/@REDACTED/g'
1,563
Posted By joeg1484
Remove single @ on line from file
Hi All,


So I have to remove all the @hostnames from a file, the problem is, there are instances where @ is used for other things... For example:


example text:

@This is some text in...
1,211
Posted By joeg1484
Hi R. Singh, Yes that worked as well....
Hi R. Singh,


Yes that worked as well. Looks a little greek to me, however, but it worked :-D


Thanks!
Joe
1,211
Posted By joeg1484
YAY, a sed version... Very cool! Thanks!
YAY, a sed version... Very cool! Thanks!
1,211
Posted By joeg1484
Hi Don, Thanks for the explanation. Could...
Hi Don,


Thanks for the explanation. Could you expand a little on the FS=" +|:" part? What are the + and | for?


Joe

--- Post updated at 02:03 PM ---




Thanks for the shorter...
1,211
Posted By joeg1484
awk Help
Hi All,


This should be simple, but for some reason I cant figure out why the following wont work:



ifconfig eth0 |awk 'BEGIN {FS=":"; print "IP Address is: "} $1 == "inet addr" { print $2...
Forum: Red Hat 12-07-2018
5,123
Posted By joeg1484
KVM/Qemu allocated memory not showing in guest
So we have a RHEL 7.6 workstation with 128 gigs of ram. The OS sees all the ram and 80 cors (40 HT)


We have 1 guest with 8 CPUs and 32gigs of ram running RHEL 7.6 workstation as well. We are...
801
Posted By joeg1484
Yeah, that would work too! Thanks!
Yeah, that would work too!

Thanks!
801
Posted By joeg1484
Joining 3 line weirdness
Hi all you Unix/Linux gurus,

So, I have something strage going on and need a sanity check...

I have 2 files that both contain 3 lines of text...

File1 - called t:

CN66270E90...
2,775
Posted By joeg1484
Hi RudiC, This works GREAT! However, it also...
Hi RudiC,

This works GREAT! However, it also removes all the lines after adding the new lines...

I need to keep the lines that exist after inserting the text... For example, ther are ##endbody...
2,775
Posted By joeg1484
Adding text from a variable using sed (Or awk) with punctuation
Hi All,

I would have though this would have been simple, but...

I have text in a variable that I need to insert into a bunch of other files... The text is simple:

...
3,270
Posted By joeg1484
That did the trick! Thanks a million! Joe
That did the trick!

Thanks a million!
Joe
3,270
Posted By joeg1484
Thats great, RudiC! Now I need to do some...
Thats great, RudiC!

Now I need to do some reading so I can figure out how it works :-D.

Thanks so much!
Joe

*Also, I will use code tags in future posts!

---------- Post updated at 10:02...
3,270
Posted By joeg1484
Grouping hostnames for pdsh
Hi All,

I have a list of hostnames in a text file and I would like to craft a bash script that would group them for use with pdsh.

For example... I would like to group the following from a...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 12:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy