The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script for moving files from one folder to other lalitkumar Shell Programming and Scripting 8 12-15-2008 07:32 AM
Script for moving files from one folder to other lalitkumar Shell Programming and Scripting 2 11-26-2008 08:27 AM
shell script for moving all the file from the same folder viv1 Shell Programming and Scripting 1 10-15-2008 03:59 AM
Moving Files from one folder to another folder farooqpervaiz Shell Programming and Scripting 10 08-07-2008 02:20 AM
moving a file to a new folder and automated ftp dineshr85 Shell Programming and Scripting 1 10-05-2007 10:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2009
ajit.yadav83 ajit.yadav83 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 13
moving file from one folder to another

i have created file in one of the folders on unix

UNIX 's36tou -T XYZ /tmp/p400/dataout/ias/AB >/dev/null


I am using above command to copy file from one system to unix

XYZ is name of file on my system usually this name is very big so i use -T to trim some charaters from name.

noe i want to move file created in tmp folder by this command to some other folder on unix.



as -T alters the name of the file , how can i move the resultant file to some other folder .


Thanks for your support.
  #2 (permalink)  
Old 03-11-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,909
Could you do the trimming in the shell itself, i.e.
Code:
"${VARIABLE:0:64}"
for the first 64 letters, instead of letting the command choose the eventual name? That way you'd know exactly what it is. You may need to use basename also, to get the filename itself without potentially stripping off directories...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0