Sponsored Content
Top Forums UNIX for Advanced & Expert Users What my puzzle file!, How to remove special characters ?? Post 302786655 by Scrutinizer on Thursday 28th of March 2013 01:16:24 AM
Old 03-28-2013
You could try to remove all special characters like this:
Code:
LANG=C tr -d '\200-\377' < puzzle.txt > puzzle.gone


Last edited by Scrutinizer; 04-05-2013 at 03:02 AM..
This User Gave Thanks to Scrutinizer For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Remove Special Characters

Dear Members, We have a file which contains some special characters. I need to replace these special character by a new line character(\n). The Special character is \x85. I am not sure what this character means and how we can remove it. Any inputs are greatly appreciated. Thanks... (5 Replies)
Discussion started by: sandeep_1105
5 Replies

2. Shell Programming and Scripting

Remove special characters from text file

Hi All, i am trying to remove all special charecters().,/\~!@#%^$*&^_- and others from a tab delimited file. I am using the following code. while read LINE do echo $LINE | tr -d '=;:`"<>,./?!@#$%^&(){}'|tr -d "-"|tr -d "'" | tr -d "_" done < trial.txt > output.txt Problem ... (10 Replies)
Discussion started by: kkb
10 Replies

3. Shell Programming and Scripting

remove special characters

hello all I am writing a perl code and i wish to remove the special characters for text. I wish to remove all extended ascii characters. If the list of special characters is huge, how can i do this using substitute command s/specialcharacters/null/g I really want to code like... (3 Replies)
Discussion started by: vasuarjula
3 Replies

4. Solaris

How to remove a directory or file with special characters in Solaris

I finally figured out how to remove a file or directory with special characters in the name. It's kind of rudimentary so I thought I would share it with everyone: find .inum -exec rm -rf {} \; (7 Replies)
Discussion started by: jastanle84
7 Replies

5. Shell Programming and Scripting

Read file and remove special characters or strings

Hello all I am getting data like col1 | col2 | col3 asdafa | asdfasfa | asf*&^sgê 345./ |sdfasd23425^%^&^ | sdfsa23 êsfsfd | sf(* | sdfsasf My requirement is like I have to to read the file and remove all special characters and hex characters ranging form 00-1f from 1st column, remove %"'... (1 Reply)
Discussion started by: vasuarjula
1 Replies

6. Shell Programming and Scripting

remove the special characters and move the file into another server

(5 Replies)
Discussion started by: number10
5 Replies

7. Shell Programming and Scripting

How to remove special characters?

Hi Gurus, I have file which contains some unicode charachator like "ü". I want to replace it with some charactors. I searched in internet and got command sed "s/ü/-/g", but I don't know how to type ü in unix command line. Please help me for this one. Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies

8. Shell Programming and Scripting

How to remove alphabets/special characters/space in the 5th field of a tab delimited file?

Thank you for 4 looking this post. We have a tab delimited file where we are facing problem in a lot of funny character. I have tried using awk but failed that is not working. In the 5th field ID which is supposed to be a integer only of that file, we are getting corrupted data as below. I... (12 Replies)
Discussion started by: Srithar
12 Replies

9. UNIX for Beginners Questions & Answers

To remove any invisible and special characters from the file(exclude @!#$&*)

Hi Guys, My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$% abc|xyz|acd¥£ó adc|123| 12áí Please help on this. Thanks Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies

10. UNIX for Advanced & Expert Users

To remove any invisible and special characters from the file(exclude @#!$*)

Hi Guys, My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$% abc|xyz|acd¥£ó adc|123| 12áí Please help on this. Thanks Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies
dxpuzzle(1X)															      dxpuzzle(1X)

Name
       dxpuzzle - DECwindows interface to a puzzle game

Syntax
       dxpuzzle [ options ]

Description
       The  dxpuzzle  command  displays  a window that contains a puzzle.  The puzzle is a video version of a number puzzle with slidable squares.
       The goal is to arrange the squares in ascending order in the fewest possible moves.  To move a square, click on it.

Options
       -bd color	   Specifies the color of the window's border (color displays only).  The default is specified by  means  of  the  Session
			   Manager's Customize Window dialog box.

       -bg color	   Specifies the color of the window's background (color displays only).  The default is specified by means of the Session
			   Manager's Customize Window dialog box.

       -d dispname	   Specifies the display screen on which dxpuzzle displays its window.	If the display option is not  specified,  dxpuzzle
			   uses  the  display  screen  specified  by  your  DISPLAY environment variable.  The display option has the format host-
			   name:number.  Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport.  The  default
			   is :0.  For more information, see

       -display dispname   This option is the same as the -d option.

       -fg color	   Specifies the color of the text (color displays only).  The default is specified by means of the Session Manager's Cus-
			   tomize Window dialog box.

       -fn font 	   Specifies the font for all parts of the puzzle other than the numbers.  Use the defaults file to  change  the  font	of
			   numbers.  The default is menu12.

       -geometry	   Specifies  the  width,  length, and location of the dxpuzzle window.  If the geometry option is not specified, dxpuzzle
			   uses default values.  The geometry option has the format [widthxlength][{+-}x{+-}y].  For more  information	about  the
			   screen coordinate system, see

       Menus

       The dxpuzzle application contains the following menus:
       File
       Customize
       Help
       Pop-Up

File Menu
       The File menu contains the following items:

       New Game 		Specifies that dxpuzzle scramble the squares and start a new game.

       Quit			Closes the dxpuzzle window.

Customize Menu
       The Customize menu contains the following items:

       Settings...		Displays the Settings dialog box that lets you specify the number of squares displayed in the puzzle.

       Save Current Settings	Saves  the  number of squares and the puzzle's size and position.  These values will be used the next time you run
				the puzzle.

       Use System Defaults	Restores the use of system default values for number of squares and puzzle size and position.

Help Menu
       The Help menu contains the following items:

       Overview 		Displays an overview of the dxpuzzle command

       About			Provides specific information about dxpuzzle.

Pop-up Menu
       The dxpuzzle window has one pop-up menu.  To display this pop-up menu, place the pointer at any position  within  the  dxclock  window  and
       click MB2 (the middle mouse button, unless you have redefined it).  This menu contains the following items:

       New Game
       Settings...
       Quit

X Defaults
       The  dxpuzzle application uses the values in the .Xdefaults when you logged in and uses the appropriate resource specification to customize
       the appearance dxpuzzle window.	The format for a resource specification in the .Xdefaults file is:

       [name*]resource:    value

       name	 Specifies the application name or the name string that restricts the resource assignment to that application or to a component of
		 an application.  If this argument is not specified, the resource assignment is globally available to all X applications.

       resource  Specifies the resource.

       value	 Specifies the value that is to be assigned to the resource.

       Because	each  toolkit-based application can consist of a combination of widgets (for example, push buttons and a scroll bar), you can form
       the name string by adding widget class and name identifiers to the string.  For further information about adding  class	and  name  identi-
       fiers, see

       For dxpuzzle, the available class identifiers are:

       Puzzle
       WorkArea

       For dxpuzzle, the available name identifiers are:

       Puzzle*workarea	   Changes such as font and colors for the work area only.

       game_level	   Initial number of squares in the puzzle.

       The general resources listed in apply to dxpuzzle.

Files
       ~/.Xdefaults
       /usr/lib/X11/app-defaults/DXpuzzle

See Also
       X(1X), dxwm(1X),
       DECwindows Desktop Applications Guide

																      dxpuzzle(1X)
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy