![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to adjust spacing | stevefox | Shell Programming and Scripting | 4 | 03-29-2007 05:19 AM |
| character spacing issue | wxornot | Shell Programming and Scripting | 1 | 03-08-2006 05:22 PM |
| Help with multiple file rename - change case of part of file name | steve7 | UNIX for Dummies Questions & Answers | 7 | 06-30-2005 10:41 AM |
| spacing question | vivekshankar | UNIX for Dummies Questions & Answers | 7 | 05-22-2005 07:34 AM |
| unix rename | signprint | UNIX for Dummies Questions & Answers | 3 | 07-14-2004 06:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can I rename a unix file that has a spacing in in the charactyers? For example, I want to rename or move a file called "My OldFile.txt" to "MyNewFile.txt" or "My_New_file.txt"
Please help |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
mv "My OldFile.txt" MyNewFile.txt
|
|
#3
|
|||
|
|||
|
If I understand your question correctly it would be:
mv My\ File\ .txt My_File.txt jiin |
|
#4
|
|||
|
|||
|
Now tell me how to create a file with spacing..
If i give touch my old.txt or vi my old.txt then, the shell interprets it as two seperate files.. one as my and the other as old.txt.... How can one succeed in creating a file with spaces???? Thanks, Nisha |
|
#5
|
|||
|
|||
|
Exactly the same
vi "my file"
__________________
Pete |
|
#6
|
|||
|
|||
|
Working fine Peter....
Thanks, Nisha |
|
#7
|
|||
|
|||
|
Nisha,
U can also do vi my\ old.txt |
|||
| Google The UNIX and Linux Forums |