"~" comes in filename after file copy


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting "~" comes in filename after file copy
# 8  
Old 02-18-2011
I am a newbee in this area...Can you pls tell me the commands to run to provide you the neccessary info?
# 9  
Old 02-18-2011
1) For unix... are you connecting to Solaris, HP, other ??
Also, type
Code:
uname

as the command to find out about your unix version.
2) Are you using Windows 7, Windows XP, or ?? for your PC

We can start with those two.
# 10  
Old 02-18-2011
Uname command gives output "LINUX"

and I am connecting to windows n/w share with Windows XP on my machine.
# 11  
Old 02-18-2011
The ~ version of filenames when displayed in MSDOS 8.3 notation is to handle filenames which might not be unique when truncated. This gets progressively more complicated the more similar filenames you have:

To see both versions at a CMD prompt use "dir /X":

Code:
dir /X my_very_long*

18/02/2011  23:55                 7 MY_VER~1.TXT my_very_long_filename.txt
18/02/2011  23:55                 7 MY_VER~2.TXT my_very_long_filename2.txt

Obviously we need to know what Operating Systems you have and what you typed.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. Shell Programming and Scripting

Copy particular file using "ls -ltr"

Hi all, I am new in shell scripting and trying to write a script which does the following: #!/bin/bash $PATH =/a/b/c ls -ltr $PATH $VARIABLE=??? $ls -ltr $PATH -rw-r--r-- 1 18401 1399 127474 Apr 13 07:21 file_abc_1.txt -rw-r--r-- 1 18401 1399 127474 July 13 07:21 file_abc_2.txt... (2 Replies)
Discussion started by: emily
2 Replies

4. UNIX for Dummies Questions & Answers

"tail -n 1 filename" error while "head -n 1 filename" is ok?

Hi all, I was wondering why tail -n 2 filename produce an error when I manage to do similar command on head -n 2 filename SunOS{type8code0}: tail -n 2 filename usage: tail ] tail ] (2 Replies)
Discussion started by: type8code0
2 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. Shell Programming and Scripting

cannot copy file using scp when filename has ":"

hi all , does any one know how can we copy a file using scp which have a file name inlcuding "+:" example : ls -lrt *.csv | tail -3 -rw-r----- 1 opern oper 8479 Feb 15 15:39 LKILA.csv -rw-r----- 1 opern oper 8479 Feb 18 12:06 L+KILA.csv -rw-r----- 1... (4 Replies)
Discussion started by: kiranreddy1215
4 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

9. AIX

CP to copy file is "stuck"

For some reason, when I attempt to copy a file, using cp, from one location to another the cmd is stuck (or taking an unusually long time). Usually copying a 1 GB file will take 3-4 mins, so far it's at 11 mins and yesterday was stuck for several hours. Is there a way I can see WHY or WHAT is... (5 Replies)
Discussion started by: mcubitt
5 Replies
Login or Register to Ask a Question