Automatic File Patching


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Automatic File Patching
# 1  
Old 01-17-2014
Automatic File Patching

Hi All,

I have a query regarding the automatic patching on files in unix

Suppose I have a file names - abc.txt and I take its backup as abc.txt_bkp and then do some changes in abc.txt and save it as abc.txt_new.

Now I want to automatically apply the changes done on abc.txt to abc.txt_bkp so that the new file abc.txt_bkp_new is same as abc.txt_new.

Can it be done automatically? I have heard of patch command which uses the output of diff command but I am not sure if we have any better way to do it?

Thanks for your inputs.

Regards
Shubham
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Automatic file movement between folders

Hello There, Here is the use cases Input folders dropbox/project/abc/ dropbox/project/pqr/ dropbox/project/lmn/ dropbox/project/xyz/ Target Folders /data/abc/ /data/pqr/ /data/lmn/ /data/xyz/ (2 Replies)
Discussion started by: TreasureCookies
2 Replies

2. Shell Programming and Scripting

SSH Script For Automatic File Upload HELP

Hi guys! I hope this hasn't been asked too many times but, Would someone be able to help me write or point me in the direction to some helpful tutorials in order to write a script to transfer a file directly to a server via SSH from a linux based computer. The script should do as following:... (2 Replies)
Discussion started by: craigwilkinson
2 Replies

3. Solaris

Patching on ZFS file-system

Hi, I have Solaris-10 (Update-7). This is having ZFS file-system and 10 sparse-root zones are there. I want to install Solaris-10 recommended patch cluster on it, but not sure, how to go ahead with procedure. I want to patch one side of the mirror and keep intact another side safe in case of... (6 Replies)
Discussion started by: solaris_1977
6 Replies

4. Shell Programming and Scripting

Automatic file input to code

i have got many files like this in my folder temp(say) imp_02042008.txt for date 02-04-2008 imp_03092009.txt for date 03-09-2009 imp_25112009.txt for date 25-11-2009 ................... ........ in some folder. and one of my shell code uses one of the above files based on date.... (9 Replies)
Discussion started by: Maruti
9 Replies

5. Shell Programming and Scripting

[code] Automatic File Input

i have got many files like this in my folder temp(say) imp_02042008.txt for date 02-04-2008 imp_03092009.txt for date 03-09-2009 imp_25112009.txt for date 25-11-2009 ................... ........ in some folder. and one of my shell code uses one of the above files based on date.... (0 Replies)
Discussion started by: Maruti
0 Replies

6. Solaris

Script for automatic count the file i have

Hi I have a folder will all the file ftp in everyday. I have to go in every morning to check to see everynight have all the 2000+ file have been all FTP in. so every morning i will check like this # ls -l *_20080904*_20080904* |wc if there is 2714 that mean is correct. File name:... (13 Replies)
Discussion started by: summerpeh
13 Replies

7. UNIX for Dummies Questions & Answers

automatic tar xf of file with unknown name

Hi all, With curl I can fetch a tar archive from a web server which contains a file ending with .scf which I am interested in. Unfortunately the file name may vary and the subdirectory inside the tar archive may change. I can manually browse the directory structure and extract the file and then... (3 Replies)
Discussion started by: tkrahn
3 Replies

8. Shell Programming and Scripting

Automatic name file with increase

Hello, A file named c15a is registered on my disc all 10 minutes. I must rename that file with the actually Date and with an automatic increase number on 5 digits, so as : c15a.20070528.00001 and the next file will be : c15a.20070528.00002. The next day so tomorrow the five digits must be... (6 Replies)
Discussion started by: steiner
6 Replies

9. UNIX for Advanced & Expert Users

unix automatic file transfer

Hello, I am a beginner with korn shell scripting. I have got a text file that gets produced every night and I need to transfer it to a windows shared area. Is there any command line script (e.g FTP) that I could use to transfer the file automatically without manual intervention everyday? Any... (4 Replies)
Discussion started by: tagem
4 Replies

10. Shell Programming and Scripting

Perl scirpt for automatic file transfer

Hi , can any one help me with a perl script for automating file transfer ? At each step i need to check for the success or failure . I am trying to connect to the target system for a specified number of times.if it doesnt connect even after 3 retries then the script should exit. and i have to... (8 Replies)
Discussion started by: sveera
8 Replies
Login or Register to Ask a Question
NAMESPACE(6)							   Games Manual 						      NAMESPACE(6)

NAME
namespace - name space description file DESCRIPTION
Namespace files describe how to construct a name space from scratch, an operation normally performed by the newns subroutine (see auth(2)) which is typically called by init(8). Each line specifies one name space operation. Spaces and tabs separate arguments to operations; no quotes or escapes are recognized. Blank lines and lines with # as the first non-space character are ignored. Environment variables of the form $name are expanded within arguments, where name is a UTF string terminated by white space, a /, or a $. The known operations and their arguments are: mount [-abc] servename old [spec] Mount servename on old. bind [-abc] new old Bind new on old. import [-abc] host "[remotepath]mountpoint Import remotepath from machine server and attach it to mountpoint. cd dir Change the working directory to dir. The options for bind, mount, and import are interpreted as in bind(1) and import(4). SEE ALSO
bind(1), namespace(4), init(8) NAMESPACE(6)