Sponsored Content
Top Forums UNIX for Dummies Questions & Answers command to change original file Post 302571943 by Corona688 on Tuesday 8th of November 2011 04:11:40 PM
Old 11-08-2011
You agreed not to bump posts when you registered.

Code:
sed "s/$search_string/$replace_string/g" $backup | tee /tmp/$$
cat /tmp/$$ > $backup

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

The original Script change after execute

Dear all, I'm new in unix system and now try to study script, I have write script : #!/bin/ksh #how to check positional argument handling echo "\$0 = $0" echo "loop over \$*" for a in $* ; do echo \"$a\" done echo " loop over \"\$@\"" for a in "$@"; do echo \"$a\" done... (4 Replies)
Discussion started by: heru_90
4 Replies

2. Shell Programming and Scripting

change file type to hidden using chmod command

I want to make a hidden file with chmod command. Example: I have a file name inputfile.txt -rw-r--r-- 1 xxxxxx xxxxxx 1388 Sep 12 05:41 inputfile.txt I want to hide that file using chmod command. Please tell me if it is possible or there is some other way to do this. Thanks... (2 Replies)
Discussion started by: rinku
2 Replies

3. UNIX for Advanced & Expert Users

command to copy files with original ownership

Hi, I need a command that to copy files from others and to keep files' ownership. Example: I copy file.txt from users "abc" to my local, and file.txt is own by user "abc" in local. Thanks in advance! (3 Replies)
Discussion started by: need_help
3 Replies

4. Shell Programming and Scripting

mv command to rename multiple files that retain some portion of the original file nam

Well the title is not too good, so I will explain. I need to move (rename) files using a simple AIX script. ???file1.txt ???file2.txt ???file1a.txt ???file2a.txt to be: ???renamedfile1'date'.txt ???renamedfile2'date'.txt ???renamedfile1a'date'.txt ???renamedfile2a'date'.txt ... (4 Replies)
Discussion started by: grimace15
4 Replies

5. Shell Programming and Scripting

Multiple file rename (change in filename in unix with single command

Dear All, Please help ! i ham having 300 file with E.G. PMC1_4567.arc in seq. like PMC1_4568.arc,PMC1_4569.arc ...n and so on.. i want all those file to be rename like PMC_4567.arc ,PMC_4568.arc .. mean i want to remove 1 from first file name .. pls help.. (6 Replies)
Discussion started by: moon_22
6 Replies

6. Shell Programming and Scripting

hp-unix stat command to get last change date of file

I'm on hp-unix. I would like a variable to hold the last change date of a file. I looked at the man pages for stat, but I don't see any examples and can't get the syntax right. Can anyone help me? Thank you. (2 Replies)
Discussion started by: sboxtops
2 Replies

7. UNIX for Dummies Questions & Answers

CSV file:Find duplicates, save original and duplicate records in a new file

Hi Unix gurus, Maybe it is too much to ask for but please take a moment and help me out. A very humble request to you gurus. I'm new to Unix and I have started learning Unix. I have this project which is way to advanced for me. File format: CSV file File has four columns with no header... (8 Replies)
Discussion started by: arvindosu
8 Replies

8. Shell Programming and Scripting

command to copy original files from links in HP-UX

I have folder ABC and files in ABC are links. I want to create the same ABC folder in different path and copy the actual files from source ABC dir. Can anyone provide command for this? Thanks in advance. (2 Replies)
Discussion started by: venkatababu
2 Replies

9. Shell Programming and Scripting

sed command not working for me to change text in a file

UNIX gurus I need your help with the following (The server is an AIX box). I have a text file with the following information: ******************************************************** SOME LINES case :WORD1 SOME LINES :WORD2 SOME LINES :WORD3 SOME LINES esac SOME LINES... (7 Replies)
Discussion started by: curiousmal
7 Replies

10. UNIX for Beginners Questions & Answers

Find Original user who executed the command

Hi Team, Please help me with the below question. SunOS 5.10 Shell: -bash I am trying to find the original user who executed a command on my development server. In my dev server users login using their personal id and sudo to a common id using 'sudo -u commonid -i'. Once logged in as... (6 Replies)
Discussion started by: sam99
6 Replies
BACKUP_HELP(8)						       AFS Command Reference						    BACKUP_HELP(8)

NAME
       backup_help - Displays help for backup commands

SYNOPSIS
       backup help [-topic <help string>+] [-admin] [-help]

       backup h [-t <help string>+] [-a] [-h]

DESCRIPTION
       The backup help command displays the complete online help entry (short description and syntax statement) for each operation code specified
       by the -topic argument. If the -topic argument is omitted, the output includes the first line (name and short description) of the online
       help entry for every backup command.

       To list every backup command whose name or short description includes a specified keyword, use the backup apropos command.

OPTIONS
       -topic <help string>+
	   Indicates each command for which to display the complete online help entry. Omit the backup part of the command name, providing only
	   the operation code (for example, specify dump, not backup dump). If this argument is omitted, the output briefly describes every backup
	   command.

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The online help entry for each backup command consists of the following two or three lines:

       o   The first line names the command and briefly describes its function.

       o   The second line lists aliases for the command, if any.

       o   The final line, which begins with the string "Usage", lists the command's options in the prescribed order. Online help entries use the
	   same symbols (for example, brackets) as the reference pages in this document.

EXAMPLES
       The following example displays the online help entry for the backup dump command:

	  % backup help dump
	  backup dump: start dump
	  Usage: backup dump -volumeset <volume set name> -dump <dump level name>
	  [-portoffset <TC port offset>]  [-at <Date/time to start dump>+]
	  [-append]  [-n]  [-file <load file>]	[-help]

PRIVILEGE REQUIRED
       None

SEE ALSO
       backup(8), backup_apropos(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							    BACKUP_HELP(8)
All times are GMT -4. The time now is 05:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy