Re: bourne shell script

From: Bit Twister (BitTwister_at_mouse-potato.com)
Date: 09/30/05

  • Next message: Gordon Burditt: "Re: ctrl + c"
    Date: Thu, 29 Sep 2005 21:13:14 -0500
    
    

    On Tue, 27 Sep 2005 13:50:06 +1000, Greg wrote:
    > is there a way to test that something work ie if I diff 2 files is there any
    > way in the script to tell if the files were the same

    if you just want a indicator, use cmp and test return code.

    man cmp


  • Next message: Gordon Burditt: "Re: ctrl + c"

    Relevant Pages

    • Re: [DOC] Linux kernel patch submission format
      ... > | So, in addition to producing the difference, diff also asks you all the ... beneficial to have a script that everyone uses which enforces all the rules. ... well how computers can be used as tools to automate processes, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • optimization with mmx.
      ... cmp = _m_pcmpgtw (zeros, diff); ...
      (comp.lang.asm.x86)
    • Need ideas on how to parse output from "diff" cmd in a script
      ... Then I have a second ksh script that does a sequence of "diff" ... because of a date-processed timestamp in the report headers. ... By jcorn ...
      (comp.unix.shell)
    • Re: Sync Schema for Two Databases.
      ... You can also look at Diff from www.apexsql.com ... ... You can script the objects in the two databases yourself (with the ... features available in Management Studio), compile the results into a single ... But never underestimate the cost of your time, not only when you do it ...
      (microsoft.public.sqlserver.tools)
    • Re: Sync Schema for Two Databases.
      ... Seems like SQL Compare is the way to go. ... You can also look at Diff from www.apexsql.com ... ... You can script the objects in the two databases yourself (with the ... But never underestimate the cost of your time, not only when you do it ...
      (microsoft.public.sqlserver.tools)