Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Renaming File Names


From   "Raphael Fraser" <raphael.fraser@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Renaming File Names
Date   Tue, 6 May 2008 14:45:05 -0500

Ah! Now I understand. Thanks much.

On Tue, May 6, 2008 at 2:37 PM, Mingfeng Lin <mingfeng.lin@gmail.com> wrote:
> You can use ! or -shell-
>
>  e.g. (in stata)
>
>  ! cmd
>  OR
>  shell cmd
>
>  OR in your case
>  !  rename ....
>  OR
>  shell rename
>
>
>
>  On Tue, May 6, 2008 at 3:31 PM, Raphael Fraser <raphael.fraser@gmail.com> wrote:
>  > I'm not sure I understand how to call the operating system. Can you
>  >  give an example?
>  >
>  >
>  >
>  >  On Tue, May 6, 2008 at 2:15 PM, n j cox <n.j.cox@durham.ac.uk> wrote:
>  >  > Yes. Do your name manipulation using the usual string functions, macros,
>  >  > whatever, then call up your operating system using !.
>  >  >
>  >  >  Nick
>  >  >  n.j.cox@durham.ac.uk
>  >  >
>  >  >  Raphael Fraser
>  >  >
>  >  >
>  >  >  Is it possible to rename the file names below using the first four
>  >  >  characters in the file name in Stata?
>  >  >
>  >  >  018b_crp_13april08.0101.csv
>  >  >  020b_crp_26apr08.0101.csv
>  >  >  027b_crp_05april08.0101.csv
>  >  >  032bb_crp_06april08.0101.csv
>  >  >
>  >  >
>  >  >
>  >  >  *
>  >  >  *   For searches and help try:
>  >  >  *   http://www.stata.com/support/faqs/res/findit.html
>  >  >  *   http://www.stata.com/support/statalist/faq
>  >  >  *   http://www.ats.ucla.edu/stat/stata/
>  >  >
>  >  *
>  >  *   For searches and help try:
>  >  *   http://www.stata.com/support/faqs/res/findit.html
>  >  *   http://www.stata.com/support/statalist/faq
>  >  *   http://www.ats.ucla.edu/stat/stata/
>  >
>  *
>  *   For searches and help try:
>  *   http://www.stata.com/support/faqs/res/findit.html
>  *   http://www.stata.com/support/statalist/faq
>  *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index