What Operating System are you running?
What Shell are you using?
Scrutinizer has quite correctly posted code using the unix "diff" program which is common to all unix versions.
The "diff" program is a buffered context compare program and shows the context of the difference and the address within each file of the difference. It is a very useful tool for comparing files which are similar and where the data is in no particular order. The "<" ">" signs tell you which file the difference came from.
It is very useful for comparing program code. For larger files there are usually special versions of diff supplied like "bdiff".
Let's say we just want to know the differences regardless of which file they came from and with no context and in no order relative to either file. I use this technique a lot for comparing code, but it works equally well for "ls".
(Yes I know I have used "cat". I like left-to-right flow).
If you really need a one-line solution just replace each newline with a semi-colon.
Hi,
I would like to know what is the difference between executing the mount command in the following ways...
eg:
/usr/sbin/mount -F <something>
AND
mount -F <something>
I mean , just executing the mount command as opposed to specifying the path and then executing it?
... (3 Replies)
Hello All, I have a question about the difference between two commands. I am using Korn and was told by the Unix admin that 'nohup <command> &'
equals 'nohup ./<command> &. That there is no difference betwewen the two. Is this true? Also, does the command './<command> &' provide a disconnect... (4 Replies)
HI all,
Please clarify the difference between the following
pm2srv:/var/opt/temip/vf/scripts/saiki#awk '{RS = ":"} ; {print $0}' testf2
hey:wasup:howru:
Yes
I
am
fine
pm2srv:/var/opt/temip/vf/scripts/saiki#awk 'BEGIN { RS = ":" } ; { print $0 }' testf2
hey
wasup
howru
Yes
I... (0 Replies)
Hi,
I need to know the difference between this commands:
grep * *search*
grep "*" *search*
As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content.
But was does the first command??
Best... (1 Reply)
Looking at the performance hit on my server, does it matter wich command I run?
client # rsh server tar –cf - . | tar –cv –f –
or
server # tar –cf – . | rsh client ‘cd target && tar –xv -f –‘
I think it doesn't really matter because both command strings involve a tar being run on... (4 Replies)
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Hi all I want to make sure I was understanding this correctly
if a cron job command was
* */20 * * * command
does that mean this command will run every 20 hours?
also what is the difference between the following two?
0,20,40 * * * * command
20 * * * * command
I believe the first... (3 Replies)