Search Results

Search: Posts Made By: Zaphod_B
22,888
Posted By Zaphod_B
Convert json to xml
Hello everyone,

I have created a workflow that will pull down data via a RESTful API in JSON, then my code parses and modifies said data. The problem I have is that these APIs I am working with...
6,275
Posted By Zaphod_B
While loop to read values
Hi Everyone,

I am currently tasked with some reporting on various Unix based OSes. I have a script deployed that runs and grabs the information I am looking for, and has a bit of logic to output...
23,335
Posted By Zaphod_B
Wow, you're good. Yes, my script expands the...
Wow, you're good. Yes, my script expands the variable properly with the proper quotes I just didn't copy/paste the right from my script.

Also, running grep beforehand to make sure those are in...
23,335
Posted By Zaphod_B
awk with exit status if pattern not found
Hi everyone,

Looking at writing another awk program here to find a pattern on a text file. If patterns aren't found I want the awk program to exit and then bash to file a failure log on the local...
4,508
Posted By Zaphod_B
So potent your babel fish gets drunk! hahaha
So potent your babel fish gets drunk! hahaha
4,508
Posted By Zaphod_B
Yeah, I am brushing up on my awk, so I am sure...
Yeah, I am brushing up on my awk, so I am sure there are more efficient ways to use it. Also, thanks to Nuetronscott for helping me, even though I was being too daft to catch on. I apologize for...
4,508
Posted By Zaphod_B
Yeah I know probably not the most elegant...
Yeah I know probably not the most elegant solution, but it does work. Sorry, I am not quite an awk master here and am working with what they gave me.

---------- Post updated at 01:59 PM...
4,508
Posted By Zaphod_B
So, yeah I figured it out, and it is working. I...
So, yeah I figured it out, and it is working. I guess I wasn't grasping at first you cannot pass a bash variable to an awk program.

here is my new method and the output works as expected. Thanks...
4,508
Posted By Zaphod_B
Correct, I think. Basically between mergers and...
Correct, I think. Basically between mergers and new policies we are migrating in tons of remote offices into one global standard. These mobile offices have been self managing for years. Someone...
4,508
Posted By Zaphod_B
I think this may not work, since there is one...
I think this may not work, since there is one master list and a ton of shares, and the file shares will have tons of different sets of folders. To give a broad example, some offices will have say an...
4,508
Posted By Zaphod_B
Well is that a reason why my echo output would...
Well is that a reason why my echo output would come up blank?
4,508
Posted By Zaphod_B
Yeah the file contains the list of the new...
Yeah the file contains the list of the new standard naming convention for shared folders on the network. Basically, I inherited other sys admin's servers and now am merging remote offices and...
4,508
Posted By Zaphod_B
well here is what I got and I think maybe the...
well here is what I got and I think maybe the problem is my text file I was given has carriage returns in it? I am not sure of the source of it's creation as it probably changed hands half a dozen...
4,508
Posted By Zaphod_B
Thanks, I need to sit down and read the book on...
Thanks, I need to sit down and read the book on awk, but never have the time. I will try this when I get to my hotel room. Currently traveling and on my hotspot. I will need to VPN to grab all my...
4,508
Posted By Zaphod_B
Sorry for being so confusing. The...
Sorry for being so confusing.

The /path/to/file will be where the comma delimited file lives. On it it will have an existing value, and the value next to it that it should be changed to. So for...
4,508
Posted By Zaphod_B
awk not outputting properly
Hi Everyone,

Long time lurker here. I have a project of bringing every one of our data centers to a newly enforced company standard. Standard naming conventions, domain migrations, etc. So,...
Showing results 1 to 16 of 16

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