Sponsored Content
Full Discussion: Odd file with no name
Top Forums UNIX for Dummies Questions & Answers Odd file with no name Post 57885 by RTM on Tuesday 9th of November 2004 11:25:39 AM
Old 11-09-2004
Odd file with no name

OS: Solaris 2.6
File with no name created Mar of 2000 - ls (with or without options) shows the file but no name associated with it.
Example:
ls -ltca
-rw-r--r-- 1 root other 9721 Apr 16 2003 printcap
-rw-r--r-- 1 root other 267 Apr 16 2003
-rw-r--r-- 1 root other 258 Apr 16 2003 auto_master

Run file command:
file *
timezone: ascii text
ypservers: English text
: ascii text

I figured out that I could use the find command to look for the specific file with -type f and -size 267 so I did rename it to junk. It contained text relating to CVS. I had tried both a space and tab with the ls command but that didn't work.

Anyone ever see a file with no name?
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Odd File Listing and unable to deleted

Hi, I'm trying to delete some files that are causing a script to malfunction. I cannot seem to remove them even with -f. I have tried chmod and chown and they don't seem to be affected the files at all. they have weird dates listings, too. Here is their listing: br-xr-xrwt 29561 538995051... (3 Replies)
Discussion started by: Jason Brice
3 Replies

2. UNIX for Dummies Questions & Answers

even odd script

I need a unix script that check for even or odd. EXAMPLE:::: please enter the number to check: 12 the output: This is an even number it has to have prompts. (2 Replies)
Discussion started by: snyper2k2
2 Replies

3. Shell Programming and Scripting

Odd and even file names

Hello, I want to sort/identify 600 files according to odd or even numbers in the files names. How can I do this? The goal is to perform different ImageMagick operations based on even or odd numbers in the file names. The file names have this pattern: bdf0001.tif, bdf0044.tif and bdf0136.tif ... (4 Replies)
Discussion started by: garganmou
4 Replies

4. UNIX for Dummies Questions & Answers

Finding the odd one out!

Hi guys, I wondered if someone would be able to help me. I have a number of files which all have entries in them looking something like; And I'm looking for a way where by I can compare a number of these files and identify the odd numbers in the sequence. So for example if I had to... (1 Reply)
Discussion started by: JayC89
1 Replies

5. Shell Programming and Scripting

odd problem in read lines from file

Hi, I wrote a small program to read lines from a file and count the lines. The program is as below: filename=$1 count=0 cat $filename | while read -r line do printf "%5d:%s\n" $count "$line" count=$((count + 1)) done echo " $count " After I run the program, the result is... (4 Replies)
Discussion started by: jianma
4 Replies

6. Solaris

Odd vi error

Hello, I have a weird think going on, on one of my servers. vi filename "/var/tmp" No such file or directory What going on here? (4 Replies)
Discussion started by: bitlord
4 Replies

7. Shell Programming and Scripting

Seperate Odd and Even numbers from 1 file to 2 files

Hey guys. I have been trying to figure out an easy way to seperate a liste of 150k numbers (10 digits) in a .txt file into odd and even numbers with each of their own files, for a project at work. I've tried Excel, but it was too much for it and it wasnt very simple. So i gave up after... (13 Replies)
Discussion started by: TranceC
13 Replies
TESTPRNS(1)															       TESTPRNS(1)

NAME
testprns - check printer name for validity with smbd SYNOPSIS
testprns printername [ printcapname ] DESCRIPTION
This tool is part of the Samba suite. testprns is a very simple test program to determine whether a given printer name is valid for use in a service to be provided by smbd(8) "Valid" in this context means "can be found in the printcap specified". This program is very stupid - so stupid in fact that it would be wisest to always specify the printcap file to use. OPTIONS
printername The printer name to validate. Printer names are taken from the first field in each record in the printcap file, single printer names and sets of aliases separated by vertical bars ("|") are recognized. Note that no validation or checking of the printcap syntax is done beyond that required to extract the printer name. It may be that the print spooling system is more forgiving or less forgiving than testprns. However, if testprns finds the printer then smbd should do so as well. printcapname This is the name of the printcap file within which to search for the given printer name. If no printcap name is specified testprns will attempt to scan the printcap file name specified at compile time. FILES
/etc/printcap This is usually the default printcap file to scan. See printcap (5). DIAGNOSTICS
If a printer is found to be valid, the message "Printer name <printername> is valid" will be displayed. If a printer is found to be invalid, the message "Printer name <printername> is not valid" will be displayed. All messages that would normally be logged during operation of the Samba daemons are logged by this program to the file test.log in the current directory. The program runs at debuglevel 3, so quite extensive logging information is written. The log should be checked carefully for errors and warnings. Other messages are self-explanatory. VERSION
This man page is correct for version 2.2 of the Samba suite. SEE ALSO
printcap(5), smbd(8) smbclient(1) AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter 19 November 2002 TESTPRNS(1)
All times are GMT -4. The time now is 12:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy