Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Check the changes made to file in vi Post 302456219 by kailash19 on Thursday 23rd of September 2010 03:33:12 PM
Old 09-23-2010
Thanks all for your replies.

I used diff for the rescue Smilie .

Discussion was knowledgeable.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do i check if changes were made to a file using vi

okay, heres the thing I'm creating a script that I can use to create users. no, this is not a homework assignment or whatever it may seem. i'm just trying to master shell programming. how can I pass arguments in a file to useradd????? when i say arguments, I mean, all the arguments and... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Dummies Questions & Answers

Script to check for a file, check for 2hrs. then quit

I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit. Logically, I'm looking for the best way to approach this Thanks for any assistance in advance. Note: I'm using a C shell and... (2 Replies)
Discussion started by: mmarsh
2 Replies

3. UNIX for Dummies Questions & Answers

monitor changes made by root

Is there any way in Solaris 9 to monitor changes made to user accounts by root? (0 Replies)
Discussion started by: scriptarg
0 Replies

4. Programming

Problem in reflecting changes made on a JSP File

I make some changes in a JSP file but the changes do not reflect on tomcat server. In my server.xml 'reloadable' paramtere is set to true. I even treid restarting the server. The changes still not reflect. The changes do reflect in a day or two. am not sure why this is happening. Shall... (3 Replies)
Discussion started by: Shikha Agrawal
3 Replies

5. Shell Programming and Scripting

strtotime() error - no changes made

Not sure what happened, this page/code always worked before, no changes were made to the code, only the box was powered down, moved and powered back up, the code seems to still be doing its job but spewing out these errors right on the page. Again no changes were made. Warning: strtotime()... (1 Reply)
Discussion started by: ippy98
1 Replies

6. UNIX for Advanced & Expert Users

Check EOF char in Unix. OR To check file has been received completely from a remote system

Advance Thanks. (1) I would like to know any unix/Linux command to check EOF char in a file. (2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Discussion started by: alexalex1
5 Replies

7. Solaris

Before I delete any file in Unix, How can I check no open file handle is pointing to that file?

I know how to check if any file has a unix process using a file by looking at 'lsof <fullpath/filename>' command. I think using lsof is very expensive. Also to make it accurate we need to inlcude fullpath of the file. Is there another command that can tell if a file has a truely active... (12 Replies)
Discussion started by: kchinnam
12 Replies

8. AIX

How to check changes made in last few weeks?

Hi, I want to know what changes were made to my AIX system in last few weeks/months. Is there any command that I can use for this? I am facing a problem wherein my program which are built few weeks back runs fine but if I build the same program now, it doesn't run as expected. ... (4 Replies)
Discussion started by: shriashishpatil
4 Replies

9. Shell Programming and Scripting

Vi : Is it possible to send ctrl + d signal from a file made with vi and executing it.

Hi Experts, Is it possible to send ctrl + d signal from a inside a file made with vi, using Ctrl V , Esc and 004 , escape sequence. Since : 004 should exit the script if executed. Is this something possible. I am trying with vi , I put this code ^ , and trying to execute it but... (4 Replies)
Discussion started by: rveri
4 Replies

10. UNIX for Beginners Questions & Answers

How do I add a log file path to a vi file to monitor all the changes made to the file?

I'm curious to know how do I add an empty log file (test1.log) to an existing text file to monitor all the changes made to a.txt. Is this expression export PATH=$PATH:/home/test1.log right to be added to the text file a.txt? (5 Replies)
Discussion started by: TestKing
5 Replies
catcmds(3U)						    InterViews Reference Manual 					       catcmds(3U)

NAME
NewCompCmd, PrintCmd, QuitCmd, RevertCmd, SaveCompCmd, SaveCompAsCmd, ViewCompCmd - catalog-oriented commands SYNOPSIS
#include <Unidraw/Commands/catcmds.h> DESCRIPTION
The Unidraw library predefines a set of non-interpretive commands that let a user specify components to open, view, and save, plus commands for generating a PostScript external representation and for quitting the application. NewCompCmd re-initializes its editor's component to let the user start editing afresh. If the existing component is modified, NewCompCmd prompts the user to save it. PrintCmd generates a PostScriptView of the editor's component and lets the user send it to a file or to a printer. QuitCmd quits the application, prompting the user to save modified components. RevertCmd lets the user re-open the current component, discarding changes since it was last saved. SaveCompAsCmd lets the user save a component under a particular name, while SaveCompCmd saves a component named previously. Finally, View- CompCmd lets the user specify another component to view in its editor. NEWCOMPCMD PUBLIC OPERATIONS
NewCompCmd(ControlInfo*, Component* prototype = nil) NewCompCmd(Editor* = nil, Component* = nil) Create a new NewCompCmd instance, optionally supplying a prototype component. When executed, NewCompCmd will make its editor edit a copy of the prototype. The editor's original component will be deleted if no other editor refers to it. virtual boolean Reversible() NewCompCmd is not reversible. Component* GetPrototype() Return the prototype component specified in the constructor. PRINTCMD PUBLIC OPERATIONS
PrintCmd(ControlInfo*, PrintDialog* = nil) PrintCmd(Editor* = nil, PrintDialog* = nil) Create a new PrintCmd instance, optionally supplying the PrintDialog to display when executed. virtual boolean Reversible() PrintCmd is not reversible. PRINTCMD PROTECTED OPERATIONS
void print(const char* print_cmd, const char* file) Concatenates print_cmd and file and calls system(3) on the result. QUITCMD PUBLIC OPERATIONS
QuitCmd(ControlInfo*) QuitCmd(Editor* = nil) Create a new QuitCmd instance. virtual boolean Reversible() QuitCmd is not reversible. REVERTCMD PUBLIC OPERATIONS
RevertCmd(ControlInfo*) RevertCmd(Editor* = nil) Create a new RevertCmd instance. virtual boolean Reversible() RevertCmd is not reversible. SAVECOMPCMD PUBLIC OPERATIONS
SaveCompCmd(ControlInfo*) SaveCompCmd(Editor* = nil) Create a new SaveCompCmd instance. virtual boolean Reversible() SaveCompCmd is not reversible. SAVECOMPASCMD PUBLIC OPERATIONS
SaveCompAsCmd(ControlInfo*, FileChooser* = nil) SaveCompAsCmd(Editor* = nil, FileChooser* = nil) Create a new SaveCompAsCmd instance, optionally supplying the FileChooser that will prompt the user to name the component. virtual boolean Reversible() SaveCompAsCmd is not reversible. VIEWCOMPCMD PUBLIC OPERATIONS
ViewCompCmd(ControlInfo*, FileChooser* = nil) ViewCompCmd(Editor* = nil, FileChooser* = nil) Create a new ViewCompCmd instance, optionally supplying the FileChooser that will prompt the user to specify the component to view. After the new component is opened successfully, the editor's original component will be deleted if no other editor refers to it. virtual boolean Reversible() ViewCompCmd is not reversible. SEE ALSO
BasicDialog(3U), Command(3U), Component(3U), Editor(3U), PostScriptView(3U), lpr(1). Unidraw 23 January 1991 catcmds(3U)
All times are GMT -4. The time now is 03:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy