Simple Quesiton, Can you set up Oracle w/ Active Directory if it is stored on a Unix box or does it need to sit on Windows Servers? I'd rather have IDs in AD rather than in Oracle itself
Oracle - Unix - Active Directory?
Yes you can. See links below on how to do it. The first link looks more like what you're trying to do.
Friday, July 31, 2009
In UNIX, what command could join two content from different file together, without any duplication?
for example, i have two file:
file A: 1,2,3,4,5,6
file B: 5,6,7,8,9,10
if i want to join the together and become file C, without any duplication, like:
file C: 1,2,3,4,5,6,7,8,9,10
what UNIX command should I use to combin two files together without any data duplication.
Thank you very much, everybody.
In UNIX, what command could join two content from different file together, without any duplication?
If the values are each on their own line, then:
cat A B | sort -n | uniq %26gt; C
If the text you have is not numbers, don't specify "-n" on sort.
If you want to know how many instances of each number was in the file, then
cat A B | sort -n | uniq -c %26gt; C
(uniq -c does a "count" of values but only prints each unique value once).
If the files contain lists of numbers separated by commas (as your example shows) then you could try:
cat A B | sed -e 's/,/\n/g' | sort -n | uniq %26gt; C
But if you want all of the results to end up back into a single line, again like your example shows, then:
cat A B | sed -e 's/,/\n/g' | sort -n | uniq | sed -e 'N s/\n/,/g' %26gt; C
Alternatively you could do all of this with a single Perl script...
Reply:I believe it is "cat"
flowers delivery
file A: 1,2,3,4,5,6
file B: 5,6,7,8,9,10
if i want to join the together and become file C, without any duplication, like:
file C: 1,2,3,4,5,6,7,8,9,10
what UNIX command should I use to combin two files together without any data duplication.
Thank you very much, everybody.
In UNIX, what command could join two content from different file together, without any duplication?
If the values are each on their own line, then:
cat A B | sort -n | uniq %26gt; C
If the text you have is not numbers, don't specify "-n" on sort.
If you want to know how many instances of each number was in the file, then
cat A B | sort -n | uniq -c %26gt; C
(uniq -c does a "count" of values but only prints each unique value once).
If the files contain lists of numbers separated by commas (as your example shows) then you could try:
cat A B | sed -e 's/,/\n/g' | sort -n | uniq %26gt; C
But if you want all of the results to end up back into a single line, again like your example shows, then:
cat A B | sed -e 's/,/\n/g' | sort -n | uniq | sed -e 'N s/\n/,/g' %26gt; C
Alternatively you could do all of this with a single Perl script...
Reply:I believe it is "cat"
flowers delivery
Oracle - Unix - Active Directory?
Simple Quesiton, Can you set up Oracle w/ Active Directory if it is stored on a Unix box or does it need to sit on Windows Servers? I'd rather have IDs in AD rather than in Oracle itself
Oracle - Unix - Active Directory?
Yes you can. See links below on how to do it. The first link looks more like what you're trying to do.
Oracle - Unix - Active Directory?
Yes you can. See links below on how to do it. The first link looks more like what you're trying to do.
In UNIX, what command could join two content from different file together, and show the times of duplication?
for example, i have two file:
file A:
a
b
c
d
e
f
g
h
file B:
d
e
f
g
h
i
if i want to join the together and become file C, and show the times of the duplication, like:
file C:
a
b
c
d 2
e 2
f 2
g 2
h 2
i
what UNIX command should I use to combin two files together ,and show the times of duplication?.
Thank you very much, everybody.
In UNIX, what command could join two content from different file together, and show the times of duplication?
you should research the "awk" / "gawk" commands in unix. they can do this work. you may also need "sort"
Reply:I wrote an answer to this question, but then I saw all your other questions, and suspect that this is for an academic assignment. I feel strongly that people should do their own work, so I've deleted my answer.
mothers day cards
file A:
a
b
c
d
e
f
g
h
file B:
d
e
f
g
h
i
if i want to join the together and become file C, and show the times of the duplication, like:
file C:
a
b
c
d 2
e 2
f 2
g 2
h 2
i
what UNIX command should I use to combin two files together ,and show the times of duplication?.
Thank you very much, everybody.
In UNIX, what command could join two content from different file together, and show the times of duplication?
you should research the "awk" / "gawk" commands in unix. they can do this work. you may also need "sort"
Reply:I wrote an answer to this question, but then I saw all your other questions, and suspect that this is for an academic assignment. I feel strongly that people should do their own work, so I've deleted my answer.
mothers day cards
Learning Unix?
Is it easy to learn unix from books or i need coaching??????????????????
Learning Unix?
I learnt from experiences, but I suppose you could more than likely use a book. Make sure to act with a UNIX-based system every day for best effect though.
Reply:It all depends what OS, you are using. Unix is very big. I personally have been using Ubuntu Linux for half a year now, and have only bought one book for useful commands. Linux's power is in its community, which really wants to help you like yahoo answers.
Ideally, no. You don't need coaching if you have BRAINS.
Reply:I would say that its easy to learn.
Online sources can quickly get you into the basic commands to move around and do things.
The "man" command is the built-in help files. Doing a "man -k mail" would show you all of the commands on the machine that have something to do with mail, then doing just a man on one of those will bring up the help file on that command.
Much of unix is raw code so you can even view the files to see how they do things.
Unix has been around for longer than windows. Even longer than internet (basically). So there is alot of online stuff to help you and many forums that you can ask a specific question.
Altho, I would have to say that Linux is probably easier to learn (for all the same reasons) even tho it does more. But Unix is the powerhouse.
Reply:u may read it from books
Reply:Books are okay but its the practice that makes perfect.
Learning Unix?
I learnt from experiences, but I suppose you could more than likely use a book. Make sure to act with a UNIX-based system every day for best effect though.
Reply:It all depends what OS, you are using. Unix is very big. I personally have been using Ubuntu Linux for half a year now, and have only bought one book for useful commands. Linux's power is in its community, which really wants to help you like yahoo answers.
Ideally, no. You don't need coaching if you have BRAINS.
Reply:I would say that its easy to learn.
Online sources can quickly get you into the basic commands to move around and do things.
The "man" command is the built-in help files. Doing a "man -k mail" would show you all of the commands on the machine that have something to do with mail, then doing just a man on one of those will bring up the help file on that command.
Much of unix is raw code so you can even view the files to see how they do things.
Unix has been around for longer than windows. Even longer than internet (basically). So there is alot of online stuff to help you and many forums that you can ask a specific question.
Altho, I would have to say that Linux is probably easier to learn (for all the same reasons) even tho it does more. But Unix is the powerhouse.
Reply:u may read it from books
Reply:Books are okay but its the practice that makes perfect.
Is Mac OS X based on Unix?
Somebody told me that the Mac OSX is developed based on UNIX. I have been working with Mac for many years but this is the first time I heard that OSX is based on UNIX platform or is designed on UNIX coding or something like that. Could someone give me a detailed answer?
Is Mac OS X based on Unix?
Yes. And not just "based on". It IS a unix flavour, called "Free BSD".
To one of the answerers above - all the mordern unix systems (OS/X included) have GUI, but it is not a part of OS.
Reply:Mac OS X ISN'T FreeBSD. FreeBSD is another OS altogether. While OS X has some FreeBSD code, it is certainly different. The kernels are completely different, as OS X uses a Mach-based kernel (XNU). OS X design-wise and code-wise overall is most similar to its direct predecessor, the NEXTSTEP OS. Report It
Reply:Sort of.
The underlying system is based on FreeBSD which was a re-write of
BSD with open source software. BSD was an evolution of the UNIX
from the 70s.
Note, however, that NONE of the code from the original UNIX exists
in FreeBSD because software developers developed their own versions.
Most of the new stuff is provided under the GNU license (open source).
Linux also uses a great deal of software developed under the GNU
license, but the kernel is different.
Reply:why yes it is this site has som mac links http://bartman1.blogspot.com/ hope it helps
Reply:yeah. the only defference is UNIX is CBI ( command based interface ) %26amp; MAC OS X is GUI ( graphic user interface )
Reply:OSX is based upon a Unix core..yes this is indeed the case. Bill Gates is also the devil, BTW. Keep using Mac, Linux, anything but microsoft
Is Mac OS X based on Unix?
Yes. And not just "based on". It IS a unix flavour, called "Free BSD".
To one of the answerers above - all the mordern unix systems (OS/X included) have GUI, but it is not a part of OS.
Reply:Mac OS X ISN'T FreeBSD. FreeBSD is another OS altogether. While OS X has some FreeBSD code, it is certainly different. The kernels are completely different, as OS X uses a Mach-based kernel (XNU). OS X design-wise and code-wise overall is most similar to its direct predecessor, the NEXTSTEP OS. Report It
Reply:Sort of.
The underlying system is based on FreeBSD which was a re-write of
BSD with open source software. BSD was an evolution of the UNIX
from the 70s.
Note, however, that NONE of the code from the original UNIX exists
in FreeBSD because software developers developed their own versions.
Most of the new stuff is provided under the GNU license (open source).
Linux also uses a great deal of software developed under the GNU
license, but the kernel is different.
Reply:why yes it is this site has som mac links http://bartman1.blogspot.com/ hope it helps
Reply:yeah. the only defference is UNIX is CBI ( command based interface ) %26amp; MAC OS X is GUI ( graphic user interface )
Reply:OSX is based upon a Unix core..yes this is indeed the case. Bill Gates is also the devil, BTW. Keep using Mac, Linux, anything but microsoft
Linux / Unix Question?
In UNIX systems, two critical files located under the etc directory store user account information . Explain the the differences between the /etc/passwd and the /etc/shadow files as they relate to user information confidentiality.
Linux / Unix Question?
/etc/passwd files store information differently than /etc/shadow files. In the passwd file, the actual password is stored there; when shadowing is used, a "x" is placed in the file, and the shadow file serves as an encrytped hash file to look up the password. Basically, when password shadowing is used, it makes it a lot more secure, because the passwords aren't just easily looked up in a file.
Linux / Unix Question?
/etc/passwd files store information differently than /etc/shadow files. In the passwd file, the actual password is stored there; when shadowing is used, a "x" is placed in the file, and the shadow file serves as an encrytped hash file to look up the password. Basically, when password shadowing is used, it makes it a lot more secure, because the passwords aren't just easily looked up in a file.
Subscribe to:
Comments (Atom)