weird file list problem


 
Thread Tools Search this Thread
Operating Systems AIX weird file list problem
# 1  
Old 04-21-2008
weird file list problem

When I do a file list in my spooler directory, I get the following
information
#ls -l |pg
-rw-rw-rw- 1 user1 ugroups 831690 Apr 03 12:52 K6A80403125051.prn :res 2330479869879093344 ext 2330477052380546512 align
-rw-rw-rw- 1 user1 ugroups 5900 Apr 03 14:19 K6A80403141858.idx :res 2330595387319513456 ext 2330592569820966624 align
-rw-rw-rw- 1 user1 ugroups 213772 Apr 03 14:19 K6A80403141858.prn :res 2330710904759933568 ext 2330708087261386736 align
-rw-rw-rw- 1 user1 ugroups 4744 Apr 03 16:05 K6A80403160554.idx :res 2330826422200353680 ext 2330823604701806848 align

I would like to know what is :res 2402755442114055840 ext 2402752624615509008 align
and how to fix this problem.
Thanks

JMMora
# 2  
Old 04-21-2008
That's part of the filename.
I suppose the problem is the white spaces on it, isn't it? Anyway, what's the problem? Smilie
# 3  
Old 04-21-2008
Yes is part of the name we are expected only the following

-rw-rw-rw- 1 user1 ugroups 831690 Apr 03 12:52 K6A80403125051.prn
-rw-rw-rw- 1 user1 ugroups 5900 Apr 03 14:19 K6A80403141858.idx
-rw-rw-rw- 1 user1 ugroups 213772 Apr 03 14:19 K6A80403141858.prn
-rw-rw-rw- 1 user1 ugroups 4744 Apr 03 16:05 K6A80403160554.idx

I mean without the " :res 2330479869879093344 ext 2330477052380546512 align " part because I you try to copy, move or even use FTP you will the error "file doesn't exist".
# 4  
Old 04-21-2008
Well, I do not know why you are naming those files that way. At least not with the info you are providing us with... But I can tell you how to manage with those files. Two options, as far as I know:
- Name them using a back slash before the white space:
ls K6A80403125051.prn\ :res\ 2330479869879093344\ ext\ 2330477052380546512\ align
- Use quotes:
ls "K6A80403125051.prn :res 2330479869879093344 ext 2330477052380546512 align"

Back to the reason for that filenames, how are them being created? by a script? program? Tell us, so that we can help you.

Regards.
# 5  
Old 04-21-2008
Data

Usually the file is created by a program, however I did a test going to the spooler directory and create a files named test with the following command.

$> banner test >test
$> ls -d test
-rw-r--r-- 1 user1 ugroups 184 Apr 21 11:51 test :res 2830710304859933568 ext 2338726239841386736 align

I don't know from where is coming the part :res 2830710.......
# 6  
Old 04-29-2008
I am Still looking for a solution.SmilieSmilie
# 7  
Old 04-29-2008
Are you sure you are using the right ls command, try it will a full path.

The output you see seems to be from the ls -El command.

Check the man page for the -E switch.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Weird awk problem

Hi, I have a simple awk script: BEGIN{} { $a=$2-$1; print $a } END{if(NR==0){ print "0" } } to which I provide the following input 2.9 14 22.2 27 (4 Replies)
Discussion started by: jamie_123
4 Replies

2. UNIX for Dummies Questions & Answers

Weird problem with join command

I have a weird issue going on with the join command... I have two files I am trying to join...here is a line from each file with the important parts marked in red: file1: /groupspace/ccops/cmis/bauwkrcn/commsamp_20140315.txt,1 file2:... (3 Replies)
Discussion started by: dbiggied
3 Replies

3. Shell Programming and Scripting

awk weird problem.

awk 'BEGIN{print 1.2.3.4}' 1.20.30.4 Can anyone explain why has extra "0" in the IP address? (3 Replies)
Discussion started by: newoz
3 Replies

4. UNIX for Dummies Questions & Answers

Weird problem with cp command on a Synology

Hi. First post, and Linux newbie, so maybe I'm missing something obvious: I have a Synology NAS that is run by a Linux distribution (which?). I have had an external hard drive connected to the NAS for making backups using Synology's backup application Time Backup. Time Backup is based on... (3 Replies)
Discussion started by: Pokersut
3 Replies

5. Shell Programming and Scripting

Weird problem in my shell script,please help me!!!

sqlLogftp_mov=$LOGDIR/logftp_mov_$mydate.log sqlplus -s $ORAUSER << EOF > $sqlLogftp_mov SET SERVEROUT ON @/$SCRIPTDIR/rep_comm_ext_tbl_load.sql EOF retorno=0 cnt=`grep -q 'ORA-' $sqlLogftp_mov | wc -l` if ; then retorno=1 echo 'Failure' sendEmailFalha exit 1 fi if ; then echo... (8 Replies)
Discussion started by: shyamaladevi
8 Replies

6. Infrastructure Monitoring

Weird dependency problem!

Hi, I want to install net-snmp-devel package but i have following dependecy problem. It's very odd, i don't get it. One of packages is depended on the other one, the other one is depended on the previous one as well. :S :S Could you help me please? Here are the steps: # ls -l total... (4 Replies)
Discussion started by: oduth
4 Replies

7. UNIX for Advanced & Expert Users

Really weird delete problem

Hi, I've Ubuntu 8.04, and it has some files that I just cannot delete. I've tried everything, inode, fsck etc. Here is what the ls -li outputs root@ubuntu:/home/luser/.local/share/Trash/files/junk# ls -l ls: cannot access TRUNK_: No such file or directory ls: cannot access 2006_output.mv:... (11 Replies)
Discussion started by: nitin
11 Replies

8. Shell Programming and Scripting

Weird date difference problem

I am trying to find the difference in days between 2 dates. I have to extract the 1st date from a filename, which i did using the awk command. I have to compare this date to today's date and if the difference is greater than 30 days, do something, else do something else. This is what i wrote... (22 Replies)
Discussion started by: meeraKh
22 Replies

9. Solaris

Weird crontab problem

Greetings To All! I am running Solaris 10 in a sparc environment. Here is the deal: In /var/spool/cron/crontabs, there is a cron user named "sys". If I do a crontab -l sys, it returns: # 0 * * * 0-6 /usr/lib/sa/sa1 # 20,40 8-17 * * 1-5 /usr/lib/sa/sa1 # 5 18 * * 1-5 /usr/lib/sa/sa2... (8 Replies)
Discussion started by: RobSand
8 Replies

10. UNIX for Dummies Questions & Answers

Weird Problem???

I have a problem I don't understand... I am trying to declare a variable, and then output the results of that variable, couldn't be simpler #!/bin/ksh VAR='Oranges' if then echo "Found Lemons" elif then echo "Found Oranges" fi The output shouold clearly be "Found Oranges", but... (2 Replies)
Discussion started by: danhodges99
2 Replies
Login or Register to Ask a Question