Sponsored Content
Full Discussion: Error while renaming file
Top Forums Shell Programming and Scripting Error while renaming file Post 302365496 by zaxxon on Tuesday 27th of October 2009 08:25:20 AM
Old 10-27-2009
Brackets are symbols that the shell wants to interpret. Enclose the new filename in single quotation marks too.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Renaming a file name

I have an audit log that is produced each day from a production printer. It names the file using todays date, but it removes the leading zero's. For example: todays date 060104 names the file 6104.txt. I ftp this file onto a Sun box and pull stats off of it. To keep some consistency to what I am... (2 Replies)
Discussion started by: dbrundrett
2 Replies

2. Shell Programming and Scripting

Getting error by renaming all the files in a folder

Hi All, I have a folder name as postscript folder and it contains the following postscript files. package1.ps package2.ps package3.ps when i am renaming all the ps files to xps files by using the following command mv /postscript/*.ps /postscript/*.xps Then i am getting the... (4 Replies)
Discussion started by: sunitachoudhury
4 Replies

3. Shell Programming and Scripting

Renaming a file use another file as a sequence calling a shl

have this shl that will FTP a file from the a directory in windows to UNIX, It get the name of the file stored in this variable $UpLoadFileName then put in the local directory LocalDir="${MPATH}/xxxxx/dat_files" that part seems to be working, but then I need to take that file and rename, I am using... (3 Replies)
Discussion started by: rechever
3 Replies

4. Shell Programming and Scripting

bad substitution Error while renaming Extension

Hi All, We are in the process of Migrating from AIX 4 to Solaris 10 and getting a Few Errors. I have been programming in shell but could never establish muself as an expert, hence please need you help. I am Getting Bad Substitution error in my script, I have isolated the issue and its... (6 Replies)
Discussion started by: paragkhanore
6 Replies

5. Shell Programming and Scripting

File renaming from list of names contained in another file

I have to rename a large number of files so that the name of each file corresponds to a code number that is given side by side in a list (textfile). The list contains in column A the filename of the actual files to be renamed and in column B the name (a client code, 9 digits) that has to be... (7 Replies)
Discussion started by: netfreighter
7 Replies

6. Shell Programming and Scripting

Renaming file

Hello, I have an outstanding issue..Iam on linux and using a putty to connect to my server and then fire our unix shell script. At location /usr/sam a file called "er 1 32.txt" out boss transfer via application. From my end on terminal when i want to transfer this file to some other location... (2 Replies)
Discussion started by: j_panky
2 Replies

7. Shell Programming and Scripting

Renaming file and check for the renamed file existence

Hi Am trying to move a file from one name to another When I do "ls" to check for the moved filename I can see the file but when I try the same with a script am unable.. I think am doing some pretty silly error.. please help.. toMove=`ls | grep -E "partition.+"` mv $toMove partition._org... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies

8. Shell Programming and Scripting

Renaming the file

Hi guys, I have written a code to move my file from one directory to another directory, the file is in .csv format and i need to append a current date to the file. the prolem is date is getting appended after the file extension.. here is my code : cd /data/home/abc/xyz now=$(date... (7 Replies)
Discussion started by: azherkn3
7 Replies

9. UNIX for Advanced & Expert Users

Error while renaming the file in SFTP Session

Hi All Below is the script I am trying to execute to rename a file in an SFTP session. It is in GNU/Linux. This script is for generic use and so I am passing arguments. Everything in the script works fine except "reading the filename in SFTP session" In the below script the... (2 Replies)
Discussion started by: sparks
2 Replies

10. UNIX for Beginners Questions & Answers

Renaming files - error

set -vx for i in ~/Shell_Practice/rename/*.txt do t=`(echo $i | awk gsub("file","newfile"))` mv $i $t done while running the above code getting below error.Please help. atomic@atomic-VirtualBox:~/Shell_Practice/rename$ ./rename.sh for i in ~/Shell_Practice/rename/*.txt ... (8 Replies)
Discussion started by: nag_sathi
8 Replies
rcsfile(4)						     Kernel Interfaces Manual							rcsfile(4)

NAME
rcsfile - format of RCS files DESCRIPTION
An RCS file is an ASCII file. Its contents are described by the grammar below. The text is free format, that is, spaces, tabs and newline characters have no significance except in strings. Strings are enclosed by symbols. If a string contains the symbol, the symbol must be doubled. The meta syntax uses the following conventions: | (bar) Separates alternatives. {...} (braces) Enclose optional phrases. {...}* (braces star) Enclose phrases that may be repeated zero or more times. {...}+ (braces plus) Enclose phrases that must appear at least once and may be repeated. <...> (angle brackets) Enclose nonterminals. RCS File Grammar Identifiers are case sensitive. Keywords are in lowercase only. The sets of keywords and identifiers may overlap. <rcstext> ::= <admin> {<delta>}* <desc> {<deltatext>}* <admin> ::= head {<num>}; access {<id>}*; symbols {<id> : <num>}*; locks {<id> : <num>}*; {strict ;} comment {<string>}; <delta> ::= <num> date <num>; author <id>; state {<id>}; branches {<num>}*; next {<num>}; <desc> ::= desc <string> <deltatext> ::= <num> log <string> text <string> <num> ::= {<digit>{.}}+ <digit> ::= 0 | 1 | ... | 9 <id> ::= <letter>{<idchar>}* <letter> ::= A | B | ... | Z | a | b | ... | z <idchar> ::= Any printing ASCII character except space, tab, carriage return, newline, and <special>. <special> ::= ; | : | , | @ <string> ::= @{any ASCII character, with "@" doubled}*@ RCS File Structure The nodes form a tree. All nodes whose numbers consist of a single pair (for example, 2.3, 2.1, 1.3, etc.) are on the trunk, and are linked through the field in order of decreasing numbers. The field in the node points to the head of that sequence (that is, contains the highest pair). All nodes whose numbers consist of 2n fields (n>=2) (for example, 3.1.1.1, 2.1.2.2, etc.) are linked as follows. All nodes whose first (2n)-1 number fields are identical are linked through the field in order of increasing numbers. For each such sequence, the node whose number is identical to the first 2(n-1) number fields of the deltas on that sequence is called the branchpoint. The field of a node con- tains a list of the numbers of the first nodes of all sequences for which it is a branchpoint. This list is ordered in increasing numbers. EXAMPLES
head | | v --------- / / | | / / / / | 2.1 | / / / / | | / __/ \__ /1.2.1.3 /1.3.1.1 | | /1.2.2.2 /1.2.2.1.1.1 --------- --------- --------- --------- ------------- ^ ^ | ^ ^ | | | | | | | v | | / | --------- / | / | 1.3 / / | / --------- / / ----------- /1.2.1.1 / /1.2.2.1 --------- / --------- ^ | ^ | | | | v | | --------- | | 1.2 / | ---------------------- /--------- / / | | v --------- 1.1 / / / / WARNINGS
RCS is designed to be used with text (ASCII) files only. Using RCS with nontext (binary) files results in data corruption. AUTHOR
was developed by Walter F. Tichy, Purdue University, West Lafayette, IN 47907, USA. 1982 by Walter F. Tichy. SEE ALSO
ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsmerge(1), rlog(1), rcsintro(5). rcsfile(4)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy