Search Results

Search: Posts Made By: sudo
1,916
Posted By sudo
Chubler, thank you for your time on this- My...
Chubler, thank you for your time on this- My script has evolved, and I was hoping I could re-phrase my question.

Example snippet:

--Company-Mail=_566WSE37-113E-4C71-ADE1-31SD22E1081D...
1,916
Posted By sudo
Sed/awk/perl substitution with multiple lines
OSX
I have been grinding my teeth on a portion of code. I am building a bash script that edits a html email template. In the template, I have place holders for SED (or whatever program is...
2,057
Posted By sudo
Agreed, case is a better choice.
Agreed, case is a better choice.
2,057
Posted By sudo
Conditional for every letter in alphabet
I wanted to know if there was a more efficient to do this. I was to setup a conditional for every letter of the alphabet, like so (I am parsing an array):
for i in "${arr[@]}"; do
if [[ $i == A*...
1,468
Posted By sudo
awk and &&
Hello Everybody.

I am having trouble matching multiple strings within an instanza. I ONLY want it to print if it finds both strings within the range. Example input (newlines between groups...
1,452
Posted By sudo
It would be great if this worked; however, the...
It would be great if this worked; however, the script seems to get tripped on on a while loops that includes a 'read' command. It never prompts the user for input and just passes right over it to the...
1,452
Posted By sudo
Thanks Sea and Chubler. So, wget would be cool...
Thanks Sea and Chubler. So, wget would be cool but it would require everybody to procure wget, so I would like to stay within the normal scope of bash on OSX. I was thinking about using SSH and...
1,452
Posted By sudo
Host Script in the Cloud
OSX

Is there a way to host a script on a server? Specifically, the end user would pop in a terminal command or script that fetches text (a formatted script) from a server and runs that code on...
2,367
Posted By sudo
Works on command line but not in script
OSX 10.9

I am building a script that evaluates the difference between 2 files. Here is a command that does not work transparently.

Running this command in Terminal yields great results; however...
1,077
Posted By sudo
Yes, I was not clear in my initial post in an...
Yes, I was not clear in my initial post in an attempt to keep things concise, but thank you for your last post it exemplified exactly what I was looking for :b:

Cheers
Patrick
1,077
Posted By sudo
I'm not sure where "@{!array[@]} is coming from,...
I'm not sure where "@{!array[@]} is coming from, I used "${array[@]}" in my original example. Do you know how I can pass "${array[@]}" into the function? I tried SEA's example but it outputs:
Not...
1,077
Posted By sudo
Trouble Assigning Variable with Function
OSX 10.9

Good morning/afternoon/evening.

I'm hoping to get some insight on assigning a variable when calling a function. The code below looks at my array and checks if the path exists. My...
2,316
Posted By sudo
Outputting Results to Indexed List
I'm looking for some suggestions on a command line utility I am making. I would like to use 'find' to locate some files and index the results so the user can choose the correct results from the list...
1,048
Posted By sudo
Editing .plists with defaults
I've done simple edits with defaults, but they usually are the parent parameter. For example changing the value of "DateCellWidthCache" =.

What if I want to change a parameter in one of the sub...
1,120
Posted By sudo
Defaults read/write question
OSX 10.9

How does "defaults" know where to look for .plists? To expand:

defaults read com.apple.finder
is located in ~/Library/Preferences
but,
defaults read com.apple.mail
is located in...
1,002
Posted By sudo
Thanks for the reply- 2 questions? Is there a...
Thanks for the reply- 2 questions? Is there a common was to browse the Active Directory to get OU and DC information? I do not host/admin the server.

'OU=Acme Group,DC=acme,DC=local' -D...
1,002
Posted By sudo
School me on LDAP queries
10.9.3 BASH

I have what I think is a simple project, but I am having trouble digesting tutorials on the web so I was hoping somebody could clarify. I have been looking at ldap and ldapsearch...
1,518
Posted By sudo
Thanks for the clarification on this ...
Thanks for the clarification on this

---------- Post updated at 11:42 AM ---------- Previous update was at 11:41 AM ----------



This cleaned up a lot of my problems, very good to know moving...
1,518
Posted By sudo
Right, that was the plan- Thanks for both the...
Right, that was the plan- Thanks for both the answers!



---------- Post updated at 05:11 PM ---------- Previous update was at 03:12 PM ----------

Follow up question:

Here is an example of...
1,518
Posted By sudo
I failed to mention there is a user call that...
I failed to mention there is a user call that asks for the file path before the example shown. trying your suggestion now
1,518
Posted By sudo
Read File Line by Line
Bash Macosx 10.9

I have a txt file formatted as follows:

filepath1,countryX
filepath2,countryY
filepath3,countryX

...etc

How can I read this line by line? Esentially I want to read...
6,282
Posted By sudo
ah! That was the missing piece to the puzzle....
ah! That was the missing piece to the puzzle. Thanks for your help.
6,282
Posted By sudo
That function is great. I see the value defined...
That function is great. I see the value defined by the user can can called by using $REPLY later on in the script. Is there a way I can create another variable?

The reason I ask, I want to build...
6,282
Posted By sudo
IP Ping Sweep
I put this together to search for unused IP addresses on a router. It's run as a Bash Command on OSX 10.9. Basically the user inputs the router address' IP range to sweep. 'jot' spits out a list of...
2,102
Posted By sudo
Good, tip- added a sleep 5. Thanks for the help...
Good, tip- added a sleep 5. Thanks for the help Don
Showing results 1 to 25 of 55

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