Sponsored Content
Top Forums Shell Programming and Scripting Convert Windows Metacharacters to Regular Text Post 302472661 by Chubler_XL on Wednesday 17th of November 2010 06:57:48 PM
Old 11-17-2010
rdcwayx, if you type "(like a telephone, except "0" at top ... left" into MS word and save as .txt you will have an example file. Here is and od -c of the file I use to test my solution:
Code:
$ od -c myfile.txt
0000000   (   l   i   k   e       a       t   e   l   e   p   h   o   n
0000020   e   ,       e   x   c   e   p   t     223   0 224       a   t
0000040       t   o   p     205       l   e   f   t  \r  \n

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I convert unix text to to win text?

How do I convert unix text files into readable text for windows. Dave (1 Reply)
Discussion started by: nucca
1 Replies

2. Solaris

convert windows OS as Solaris remotely

I have a Windows 2000 Terminal, which I want to convert into Solaris 10. I am connected to windows terminal remotely via iLO and then inserted the solaris DVD in my local drive. Now when I connect to Windows machine from 'RDP' - I can see local DVD in there - and IF I then reboot remote machine... (1 Reply)
Discussion started by: panchpan
1 Replies

3. UNIX for Dummies Questions & Answers

How to convert text to columns in tab delimited text file

Hello Gurus, I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem? The input file example, ... (6 Replies)
Discussion started by: Unilearn
6 Replies

4. Shell Programming and Scripting

How can I get the matched text when using regular expression.

Hello: (exp) : match "exp",the matched text is stored in auto named arrays. How can I get the matched text ? What is the name of the auto named arrays on linux shell ? (4 Replies)
Discussion started by: 915086731
4 Replies

5. UNIX for Dummies Questions & Answers

Copying text from Windows to AIX - missing text?

Hi All, I'm hoping this is an easy question, but I'm having a weird problem trying to simply copy and paste text from MS Windows (XP) Notepad and then pasting into vi or vim in AIX. When I type "oslevel" I get "5.3.0.0". The problem is that once the text is pasted, there are sections of text... (2 Replies)
Discussion started by: PlainInverted
2 Replies

6. Shell Programming and Scripting

help with organizing some non regular text

hey im trying to get the hex diffrences in two files ones called new and the other is named old i want it to phrase into my script, heres how i need the info: input='\x'94 #the new 1 byte hex change offset=00000000 #the 1st offset of the difference patch unset input offset input='\x'34... (5 Replies)
Discussion started by: lewisdenny
5 Replies

7. Shell Programming and Scripting

Convert this Windows script so I can use it on Macbook

Hi guys, I am been banging my head for days on something that appears too simple to be so hard for me. I have this bash script which I used just fine on my windows PC. I took this file over to my Macbook and try to run it and it fails like no tomorrow. This is the contents of the file:... (3 Replies)
Discussion started by: richsark
3 Replies

8. Windows & DOS: Issues & Discussions

Convert UNIX text file in Windows to recognize line breaks

Hmmm I think I found the correct subforum to ask my question... I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this?... (1 Reply)
Discussion started by: frys_hp
1 Replies

9. UNIX for Dummies Questions & Answers

Convert UNIX text file in Windows to recognize line breaks

Hi all, I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this? Or just reinsert thousands of line breaks again :eek: ? (2 Replies)
Discussion started by: frys_hp
2 Replies

10. Shell Programming and Scripting

Trying to convert utf-8 to WINDOWS-1251

Hello all i have utf-8 file that i try to convert to WINDOWS-1251 on linux without any success the file name is utf-8 when i try to do : file -bi test.txt it gives me : text/plain; charset=utf-8 when i try to convert the file i do : /usr/bin/iconv -f UTF-8 -t WINDOWS-1251 test.txt >... (1 Reply)
Discussion started by: umen
1 Replies
Dialcodes(4)						     Kernel Interfaces Manual						      Dialcodes(4)

NAME
Dialcodes - Contains the initial digits of telephone numbers used to establish remote connections over a telephone line SYNOPSIS
/usr/lib/uucp/Dialcodes DESCRIPTION
The /usr/lib/uucp/Dialcodes file contains the initial digits of telephone numbers used by the uucp program to establish remote connections over a telephone line. The Dialcodes file simplifies entries in the /usr/lib/uucp/Systems file for sites where a number of device tele- phone numbers have the same prefix. If users at your site communicate regularly by way of telephone lines and modems to multiple systems all located at the same remote site, or to multiple systems located at different remote sites, use dial-code abbreviations in the /usr/lib/uucp/Systems file rather than entering the complete telephone number of each remote modem in that file. The Dialcodes file contains dial-code abbreviations and partial telephone numbers that complete the telephone entries in the /usr/lib/uucp/Systems file. Entries in the Dialcodes file contain an alphabetic prefix attached to a partial telephone number that may include the following information, in the order listed: Codes for an outside line. Long-distance access codes (1 and the area code, if the modem is out of the local area). The 3-digit exchange number. The relevant alphabetic prefix (representing the partial telephone number), together with the remaining four digits of that number, is then entered in the Phone field in the /usr/lib/uucp/Systems file. Following is the form of an entry in a Dialcodes file: DialCodeAbbreviation DialingSequence The DialCodeAbbreviation part of the entry is an alphabetic prefix containing up to eight letters, established when setting up the dial- code listing. The DialingSequence comprises all the digits in the number that precede the actual 4-digit telephone number. Note that if your site uses only a relatively small number of telephone connections to remote systems, include the complete telephone num- bers of the remote modems in the /usr/lib/uucp/Systems file rather than using dial-code abbreviations. Enter each prefix only once in the Dialcodes file. When you have set up a dial-code abbreviation, use that prefix in all relevant entries in the /usr/lib/uucp/Systems file. Only someone with superuser authority can edit the Dialcodes file, which is owned by the uucp program login ID. EXAMPLES
The Dialcodes file on system venus contains the following dial-code prefix for use with a number in the /usr/lib/uucp/Systems file: local 9=555 The Systems file on system venus contains the following entry for system zeus, including a telephone number and a dial-code prefix: zeus Any ACU 1200 local1212 in:--in: nuucp word: thunder When the uucp program on system venus dials system zeus, it uses the expanded telephone number =5551212. FILES
Contains all the configuration files for the uucp program, including the Dialcoddes file Contains information about available devices Spec- ifies initial handshaking on a connection Describes accessible remote systems RELATED INFORMATION
Commands: cu(1), tip(1), uucp(1), uuto(1), uux(1) delim off Dialcodes(4)
All times are GMT -4. The time now is 12:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy