Search Results

Search: Posts Made By: kthatch
2,744
Posted By kthatch
Can someone please help with New Lines and Blank...
Can someone please help with New Lines and Blank Lines?
2,744
Posted By kthatch
My output is like this: 301,1,1,301jjones ...
My output is like this:

301,1,1,301jjones
302,1,1,302jjones
303,200,4,303jdeer
303mjohnson
303jjones
303kwoods
304,30,1,304jjones
305,1,1,305jjones
306,37,3,306jjones
306swalker...
2,744
Posted By kthatch
Because my script produces hundred of lines and...
Because my script produces hundred of lines and it results in many line breaks and blank lines. I want the blank lines and the new lines included in the output.
2,180
Posted By kthatch
Thank you.
Thank you.
2,744
Posted By kthatch
Newbie help with New Line & Blank Line
I have this in my script:

usercount=`ldapsearch -L -b"ou=people,ou=$ou,dc=paisleyhosting,dc=com" -h"$server" -p"1391" cn=* nothing | grep -c dn`

admincount=`ldapsearch...
2,180
Posted By kthatch
Newbie Help with Grep or Awk .. Easy one ...
I have this output:

uniquemember=uid=315kthatch,ou=people,ou=client315,dc=paisleyhosting,dc=com

and i want the output to be just this:

315kthatch

I need it to be generic tho, because I...
Forum: Solaris 01-13-2009
2,532
Posted By kthatch
sun ldap script
We use sun ldap. I have a branch with 2500 users and 20 groups (group1, group2, group3 .. etc). I need to run a script that i can run from my solaris box that will delete all users EXCEPT the users...
9,356
Posted By kthatch
--- Thanks!
--- Thanks!
9,356
Posted By kthatch
As I mentioned i my original post "My...
As I mentioned i my original post

"My colors only work if referenced to /usr/local/bin/ls --color" (in my bashrc file. alias ls='/usr/local/bin/ls --color=auto' ... if I use /usr/bin/ls or ls...
9,356
Posted By kthatch
Yes, I did that --- sorry I did not clarify. ...
Yes, I did that --- sorry I did not clarify.

rm () {
local ask
ask="-i"
case $# in 1)
case $1 in work|log|tmp) ask= ;; esac ;;
esac
/bin/rm $ask "$@"
}
9,356
Posted By kthatch
era --- as for my colors, here is the results to...
era --- as for my colors, here is the results to your question:

# which ls
/usr/bin/ls

# type -all ls
ls is /usr/bin/ls
9,356
Posted By kthatch
Thank you ALL for responding! Pupp/Redhead...
Thank you ALL for responding!

Pupp/Redhead --- I added another alias to my .bashrc (alias wlt='\rm -r work log tmp') and WHALAH! -- it overroad the previous alias rm='rm -r alias' entry and...
9,356
Posted By kthatch
era -- would I add this to my .bashrc file or a...
era -- would I add this to my .bashrc file or a separate script by itself?

rm () {
local ask
ask="-i"
case $# in 1)
case $1 in your|excluded|files) ask= ;; esac ;;
esac
...
9,356
Posted By kthatch
Sorry -- I did not see the response from era -- i...
Sorry -- I did not see the response from era -- i must have been posting at the same time ... I will review and respond shortly.
9,356
Posted By kthatch
Thanks for your response, but .... Q1. -...
Thanks for your response, but ....

Q1.
- change the permission of these files --> Our application creates these files on startup. Prior to restarting our application, these files must be...
9,356
Posted By kthatch
.bashrc question re: rm -i & ls --colors
QUESTION #1:

I have this in my .bashrc file:

alias rm='rm -i'

Problem is, there are 3 files that I remove many times a day and would like this command to ignore these 3 files. In other...
59,665
Posted By kthatch
Copy single file to multiple directories
Please help - I need to copy a single file to multiple directories.

Dir structure:

Parent_Directoy
Filename1
Child_Directory1
Child_Directory2
Child_Directory3
...
65,559
Posted By kthatch
I tried each of these suggestions and neither...
I tried each of these suggestions and neither worked.

Results:

#egrep -cv '#|^$' active_servers
this displayed the total but on screen only, not in the file

#awk '!/^#/ &&...
65,559
Posted By kthatch
How to count lines - ignoring blank lines and commented lines
What is the command to count lines in a files, but ignore blank lines and commented lines?

I have a file with 4 sections in it, and I want each section to be counted, not including the blank...
4,154
Posted By kthatch
Is the script executable?
chmod +x total_rawfile
1,627
Posted By kthatch
Ok - this is complicated - I need to create a...
Ok - this is complicated - I need to create a script that looks for all of our active clients on a particular server. Most of our clients are single clients (clientXXX or trainXXX), but there are a...
1,675
Posted By kthatch
Thank you!
TinWalrus - Thanks! I had to do a couple of modifications and it worked like a charm! Your a savior!

ghostdog74 - Thanks for your response... the sed script didn't like the -i option, and when I...
1,627
Posted By kthatch
I was hoping someone could help...
If anyone out there can help with this - it would be greatly appreciated... I am really struggling finding a solution. If you have questions or need clarification on anything, please ask...
...
1,675
Posted By kthatch
Pls Help - Need to edit file located in several directories
I need to update an entry called "mail.RiskNavigatorFromEmailAddress" in all of the "Application.properties" files below, which are located in several different directories...

Each of these...
2,109
Posted By kthatch
Newbie ? Need Help with If/Then & Line Breaks...
I hope this makes sense, but I need help with what is indicated with %%, below :

A.) ####List active servers and send to file####

# ps -ef | grep jboss | grep sh | awk '{if ($14) {print...
Showing results 1 to 25 of 28

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