Search Results

Search: Posts Made By: nitrobass24
3,427
Posted By nitrobass24
find: -prune and -name options
I am trying to find all .rhosts files on some unix systems. I tried just -name ".rhosts" but we have a lot of really large NFS and MVFS systems that I do not want to crawl and I am having a hard time...
2,711
Posted By nitrobass24
Which Grep to use a file as input?
I have two files: usednaslist & naslist
Using RHEL5

usednaslist
>filera:/vol/EQIMS/build

>filera:/vol/iquad_dev/FAST_dev

naslist
>server12 SunOS filera:/vol/EQIMS/build ...
1,892
Posted By nitrobass24
RSH: Running out of ports
I have an issue where I am running out of ports when using RSH to start a script remotely.

I have a script that i need to run that has been pushed out to every server. I have a list of servers...
1,364
Posted By nitrobass24
Test command:Duplicate Header row in Log File
I have a script that is inventorying (not sure if thats a word) my environment.

It goes out and pulls Hostname OS, IP, and ENV (dev, prod, etc)..then spits all that to a logfile

At the top of...
3,287
Posted By nitrobass24
Here is what i ended up with after doing some...
Here is what i ended up with after doing some research on uses of eval.
i=1
BIGSTRING="one two three four five six seven eight"

while [[ $i -le 10 ]]; do
typeset "STRING$i=`echo $BIGSTRING|...
3,287
Posted By nitrobass24
namerefs alternative for KSH88
I have to use KSH88, so going to BASH, perl etc. is not an option.

Below is a much simplified verison of what I am doing (aka ignore my cut command and i not increasing) :)

i=1
BIGSTRING="one...
1,725
Posted By nitrobass24
HP & SOL ---------- Post updated at 12:23 PM...
HP & SOL

---------- Post updated at 12:23 PM ---------- Previous update was at 12:20 PM ----------



What does the "," do?

Dont remember seeing that in the man page.
1,725
Posted By nitrobass24
FIND: Combining -size & -prune
I am having an issue adding the -size test to my find command.

I am trying to find all files smaller than 250mb, that are not in .snapsnot or man directories.

What i started with

find ....
1,641
Posted By nitrobass24
hmmm lol -w works on Linux & HP...but not...
hmmm lol

-w works on Linux & HP...but not Solaris.

Geez maybe i will just use two commands.
1,641
Posted By nitrobass24
Regex for HP egrep
I seem to be having an issue with an egrep command and I think its the way it is interpreting my regex.

I have a test file..
###FIND THESE###
telnet
/telnet
`telnet -l`
###Dont FIND THESE###...
4,484
Posted By nitrobass24
does it matter why I want to put 2000 words into...
does it matter why I want to put 2000 words into array? NO
The fact is I have a string that i need to put into an array and its too big, so I want to split it up. PERIOD.

If you dont want to...
4,484
Posted By nitrobass24
Its not too big for a shell variable....Its in a...
Its not too big for a shell variable....Its in a shell variable.

I just want it smaller so i can put it into an array.
4,484
Posted By nitrobass24
KSH: Split String into smaller substrings based on count
KSH
HP-SOL-Lin
Cannot use xAWK

I have several strings that are quite long and i want to break them down into smaller substrings.

What I have
String = "word1 word2 word3 word4 .....wordx"...
997
Posted By nitrobass24
Here is the final code I ended up with sed...
Here is the final code I ended up with
sed 's/[][+|~!@#\$%^&*?,><(){}:;'\'''\"''\`''\.''\/''\\'=-]/ /g'
I had to put = and - at the very end.
997
Posted By nitrobass24
I tried this but whenever there is a $ in my...
I tried this but whenever there is a $ in my string (e.g. word1$word2-word3) my output looks like "word1"
997
Posted By nitrobass24
Help me add [] to my SED command
I am trying to replace various punctuation with spaces using SED.

Here is my current code
sed 's/[[]-=+|~!@#\$%^&*(){}:;'\'''\"''\`''\.''\/''\\']/ /g'

I need to add [] to my command so i can...
1,883
Posted By nitrobass24
Find + Symlinks = me confused
So i have read the man pages a few time. Searched google but I am not quite sure i understand all the lingo.

What i want to do is list all files on / except i dont want any symlinks (because if I...
6,053
Posted By nitrobass24
hmm i could pipe find/ through grep. Ill try...
hmm i could pipe find/ through grep.

Ill try both and see which is faster
6,053
Posted By nitrobass24
Solaris FIND: Exclude Specific Paths
Using Sol 10 + KSH.

I need to run a find command on the whole system "/" and exclude a bunch of explicit directories and files that may or may not be on each system.

I cannot use the -name...
3,624
Posted By nitrobass24
thanks for all of the suggestions/help
thanks for all of the suggestions/help
3,624
Posted By nitrobass24
Sending Sed/Echo output to Variable
I have a variable $WORDS that contains a string


Then i want to use sed to break it up.
echo $WORDS | sed 's/[!-/:-@[-`{-~]/ /g'

I tried setting this as a variable by doing
WORDS2=`echo...
1,463
Posted By nitrobass24
Thats perfect...thanks!
Thats perfect...thanks!
1,463
Posted By nitrobass24
[Solved] KSH: Array/If Help
RedHat 5
KSH

I am creating an array, and then using case to go through and count for specific words. Then the count gets stored as an expression.


string='ftp rcp rsh telnet ftp ftp'
set -A...
3,827
Posted By nitrobass24
Don Thanks for the tips....I have it...
Don

Thanks for the tips....I have it working on my HP boxes and Redhat boxes now.
I am running this as part of a KSH script so i still need the quote processing.

Here is the current code (i...
3,827
Posted By nitrobass24
GSUB/Regex Help
I am trying to write my gsub regex to replace a bunch of special characters with spaces, so i can split it to an array and look at each word independently.

However, my regex skills are slightly...
Showing results 1 to 25 of 43

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