Sponsored Content
Top Forums UNIX for Dummies Questions & Answers trailing question mark in filename Post 302076103 by Corona688 on Thursday 8th of June 2006 07:18:13 PM
Old 06-08-2006
I think you've got gremlins.

Image

"Gremlin" is a colorful term for strange, nonprinting characters that your text editor might not show you but can really foul things up anyway. That's not a literal question mark, it's ls thinking "What the hell is that? I can't print that!" so it just prints a question mark instead. Gremlin characters are even more annoying in C files, the compiler just dies.

I often get lots of gremlins from copy/pasting stuff from the internet. If that's how you ended up with that one, there's probably lots more.

You can get rid of gremlins like:
Code:
tr -d '[\000-\010\014\016-\037\177]' < messed-up.sh > fixed.sh

This will strip out any characters but ASCII printing characters, newline, carriage return, tab, and space.

P.S. Don't feed them
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

? question mark, how to get back to the root directory

hiyas I am trying to get back to the root directory: I went into MAIL directory and now I can't get back to the root directory. What are the commands... I have '?' coming up and I cannot proceed with this, HELP Cheers (1 Reply)
Discussion started by: etravels
1 Replies

2. Shell Programming and Scripting

~mark

hi guys I am studing unix and I have some questions to ask. what is the diffrence beteween man and info? how and when we use ~ mark? tanks henk ;) (1 Reply)
Discussion started by: henk
1 Replies

3. Shell Programming and Scripting

gzcat into awk and then change FILENAME and process new FILENAME

I am trying to write a script that prompts users for date and time, then process the gzip file into awk. During the ksh part of the script another file is created and needs to be processed with a different set of pattern matches then I need to combine the two in the end. I'm stuck at the part... (6 Replies)
Discussion started by: timj123
6 Replies

4. Shell Programming and Scripting

Question mark in filename

Dear All, I am trying to run some commands and I am getting question mark in filename as output files. Which is not a literal question mark however it is not standard output format for UNIX and it can not print it. The output files are extended with ? For example,... (2 Replies)
Discussion started by: hsmart
2 Replies

5. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

6. Shell Programming and Scripting

Backwards question mark appearing in FTP'd file

Hi all, I'm trying to FTP what looks like a simple .txt file from my Windows XP desktop to my UNIX server. I've tried using several programs to do this including UltraEdit and FTP Commander. I have tried sending it ascii, binary and even let the program decide. But every time it arrives in UNIX... (4 Replies)
Discussion started by: Korn0474
4 Replies

7. UNIX for Dummies Questions & Answers

Removing the trailing date from a filename

Hi I have 3 files (say) in a folder as in the example below abc_01012011.csv def_01012011.csv xyz_01012011.csv I need to move these files to a different folder as follows abc.csv def.csv xyz.csv I am trying to put together a script with a for loop which reads the source filenames... (5 Replies)
Discussion started by: bobsn
5 Replies

8. Shell Programming and Scripting

Displaying trailing spaces in a filename; Korn Shell

Korn Shell on AIX 6.1 In one of our directories, we have 2 files with same names but one of those file's name has 3 trailing spaces ls *.ctl rconf.ctl rconf.ctl #this file has 3 trailing spaces Is there any way we could display these trailing spaces ? (6 Replies)
Discussion started by: polavan
6 Replies

9. Shell Programming and Scripting

Nawk command not working for Question mark (?)

Hi Folks, I am facing an issue with nawk command. The data is as below: ABC0022,BASC,Scene Package,INR,02May17,XXX4266,be?. Hotel,3,AW01,Twin Room,61272,41308,39590,39590,X,X ABC0022,BASC,Scene Package,INR,02May17,XXX4266,be?. Hotel,3,AW02,Twin Room with Balcony,9272,85638,4520,9590,X,X... (1 Reply)
Discussion started by: kirans.229
1 Replies
img-xpm(3tk)															      img-xpm(3tk)

NAME
img-xpm - Img, X Windows Pixmap Format (xpm) SYNOPSIS
package require Tk package require img::xpm ?1.3? image create photo ?name? ?options? DESCRIPTION
The package img::xpm is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its own, via package require img::xpm. Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing raster images in the X Windows Pixmap Format (xpm). More specifically img::xpm extends Tk's photo image type. The name of the new format handler is xpm. This handler does not provide additional configuration options. All of the above means that in a call like image create photo ?name? ?options? [1] Image data in xpm format (options -data and -file) is detected automatically. [2] The format name xpm is recognized by the option -format. SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img- window, img-xbm, img-xpm KEYWORDS
image handling, tk, xpm COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com> Img 1.3 img-xpm(3tk)
All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy