URGENT HELP: problem with mv command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting URGENT HELP: problem with mv command
# 1  
Old 03-08-2012
Java URGENT HELP: problem with mv command

I was trying to move a file to a particular directory. In a hurry i forgot to give the dest directory, as below

Code:
 
mv prod.log

The file disappeared. Smilie
Any idea where it might have moved???

And I have tried moving files based on date from one directory to another as below.


Code:
 
-rw-rw-rw- 1 plttux edwprod 6130 Mar 8 01:07 XXX_20120308.tar.Z
-rw-rw-rw- 1 plttux edwprod 51 Mar 8 01:15 XXX_20120308_COMPLETE
$ mv *20120308*
$ mv *20120308* karthi
 
$ cd karthi
$ ls -ltr
total XXXXX
-rw-rw-rw- 1 plttux edwprod 20546 Mar 7 09:14 XXX_20120307.tar.Z
-rw-rw-rw- 1 plttux edwprod 51 Mar 7 09:16 XXX_20120307_COMPLETE
-rw-rw-rw- 1 plttux edwprod 6130 Mar 8 01:07 XXX_20120308_COMPLETE

It seems the content of the file "XXX_20120308.tar.Z" was copied in the name "XXX_20120308_COMPLETE", I assume this from the file size(6130).

Any idea why the file(XXX_20120308.tar.Z) is missing?? Smilie


Thanks in adv....
# 2  
Old 03-08-2012
Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.


Thank you.

The UNIX and Linux Forums
This User Gave Thanks to Scott For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with Find command urgent help!!

hi I used find command to find some file names as per input from user. I used it for current directory. It was working fine. Now I tried with giving some other directory path. Its giving issues. Here what I tried. Script will take input from user say 1_abc.txt, find the file and print list. if... (1 Reply)
Discussion started by: sukhdip
1 Replies

2. Shell Programming and Scripting

urgent: script problem???

#!/usr/bin/sh read file #exec 3<&0 exec 0<$file while read line do if then BOUND=$line break fi count=`expr $count + 1` done #exec 0<&3 echo $BOUND sh check.sh (4 Replies)
Discussion started by: skyineyes
4 Replies

3. Shell Programming and Scripting

Urgent: ACCESS PROBLEM

Hi I have users A and B in UNIX system both are not having root priveleges. User A has written a script file where it connects to database and uses a logfile directed to the path in directory of USER B. I copied the script into USER B directory and tried to run the script. Its giving... (3 Replies)
Discussion started by: skyineyes
3 Replies

4. AIX

URGENT --problem in unzipping

when try to unzip a very big file facing an error of disk full. can any body help me to unzip this file . $ unzip abc.zip Archive: abc.zip inflating: abc.zrp abc.zip write error (disk full?). Continue? (y/n/^C) $ n Thanks & Regards (2 Replies)
Discussion started by: suman_jakkula
2 Replies

5. Shell Programming and Scripting

Problem with Tail command --urgent pls

eg: If I execute an example tail statement to put rows from one file to another, it truncates some of the data. /carrier>wc -l IntIndA.txt 1918 IntIndA.txt /carrier>tail -1918 IntIndA.txt > test /carrier>wc -l test 132 test The tail command should copy 1918 rows to test file instead of... (4 Replies)
Discussion started by: subbukns
4 Replies

6. Shell Programming and Scripting

problem in unzipping---URGENT

when try to unzip a very big file facing an error of disk full. can any body help me to unzip this file . $ unzip abc.zip Archive: abc.zip inflating: abc.zrp abc.zip write error (disk full?). Continue? (y/n/^C) $ n Thanks & Regards (1 Reply)
Discussion started by: suman_jakkula
1 Replies

7. Shell Programming and Scripting

date problem -- URGENT

Hi All, When i run date command at unix prompt, i get the output in format Tue Aug 29 12:36:18 GMT 2006 when i write the shell script i should be able to export the date output with format as YYYY/MM/DD-HH:MM:SS into some variable(ex : dateop). and when i say echo ${dateop} i should... (9 Replies)
Discussion started by: rkrgarlapati
9 Replies

8. HP-UX

Urgent printing problem

I can no longer print from HP-UX 10. All the printers are network printers. I have already stopped and restarted the spooler (lpshut and lpsched), but still the same problem. The printers react when I ping them. I have also tried with SAM, but the system cannot find the printers. Can somebody... (1 Reply)
Discussion started by: filipd
1 Replies

9. UNIX for Advanced & Expert Users

urgent: problem with find command

find / * -print > /var/tmp/updatedfilelist.txt 2>&1 i need to run the above file in cron. problem is, this process takes a long long long time to finish up. and even worse, it fills up the directory the output file is located in. i dont want the /var directory to ge filled up because of... (10 Replies)
Discussion started by: Terrible
10 Replies

10. UNIX for Dummies Questions & Answers

help urgent problem

i accedently "deleted" all workspaces I have a black screen and dont know what to do solaris common desktop enviroment (1 Reply)
Discussion started by: ssshakir
1 Replies
Login or Register to Ask a Question