Sponsored Content
Full Discussion: Foreign characters in bash
Top Forums UNIX for Dummies Questions & Answers Foreign characters in bash Post 11352 by PxT on Monday 3rd of December 2001 03:47:06 PM
Old 12-03-2001
Try using the "-8" option to telnet if your version supports it. Alternately give telnet the "toggle binary" command to enable 8-bit transport.

i.e.:


$ telnet
telnet> toggle binary
Negotiating binary mode with remote host.
telnet> open yourserver.com
Trying...
Connected to yourserver.com
Escape character is '^]'.
...
 

10 More Discussions You Might Find Interesting

1. Programming

Problem with including foreign characters in Lex rule

Hi, I'm hoping that someone might be able to help me with this problem: I have already added new code to several existing Lex rules to accept the following foreign characters: å ä ö Å Ä Ö æ Æ ø Ø ü Ü ß. The code looks like this: /*Nathalie Stern, 080121 - Add å ä ö Å Ä Ö æ Æ ø Ø ü Ü ß handling to function*/... (1 Reply)
Discussion started by: Nathalie1
1 Replies

2. UNIX for Advanced & Expert Users

foreign characters

I have a flat file and have foreign characters in three fields. Can somebody tell me how to get rid of these special characters? It's very urgent because without this my process is failing. Thanks in advance. Angielina (1 Reply)
Discussion started by: angelina
1 Replies

3. Shell Programming and Scripting

foreign characters

I have a flat file and have foreign characters in three fields. Can somebody tell me how to get rid of these special characters? It's very urgent because without this my process is failing. Thanks in advance. Angielina (2 Replies)
Discussion started by: angelina
2 Replies

4. UNIX for Advanced & Expert Users

foreign characters in flat file

Hey, Is there anyway I anks, Pocha (12 Replies)
Discussion started by: pochaman
12 Replies

5. Shell Programming and Scripting

Special characters in a bash variable in sed

Hello, I am trying the following: echo __CHANGEME__ >> testfile VAR1="&&&" sed -i "s|__CHANGEME__|${VAR1}|" testfile cat testfile This results in testfile containing __CHANGEME____CHANGEME____CHANGEME__ Whereas I want it to result in &&& I understand that if VAR1="\&\&\&" then... (3 Replies)
Discussion started by: linuxnewbeee
3 Replies

6. Shell Programming and Scripting

Bash script - stripping away characters that can't be used in filenames

I want to create a temp file which is named based on a search string. The search string may contain spaces or characters that aren't supposed to be used in filenames so I want to strip those out. My thought was to use 'tr' with but the result is the opposite of what I want: $ echo "test... (5 Replies)
Discussion started by: mglenney
5 Replies

7. Shell Programming and Scripting

[BASH] Keep only certain characters

Hi, My google fu has failed me on this one Im writing a bash script that can parse a xml document using xpath and then creates a php page, too add to my wordpress blog however sometimes the returned string is invalid for php, or atleast in the function im using on the php script so im... (1 Reply)
Discussion started by: Viporous
1 Replies

8. UNIX for Dummies Questions & Answers

Bash: using SED, trying to replace some characters except first or last line

Hi, I require to replace 2 items: 1. replace start of all lines in a file with ' except the first line 2. replace end of all lines in a file with '||chr( except last line I am able to do the entire file using sed -e s/^/\'/g -e s/$/\'\|\|chr\(/g "$file" > newfile.txt but am not yet... (3 Replies)
Discussion started by: Chella15
3 Replies

9. Shell Programming and Scripting

Deleting particular characters from each line in a file in bash

Hi All, I am struck with an issue. I need to delete '%' and 'G' from all lines in the input file. Below is what I want to do. InputFile 04/09/2012.21:58:17,well9,rootfs,3.9G,2.7G,1.1G,71%,/ 04/09/2012.21:58:17,well9,/dev/hda2,3.9G,2.7G,1.1G,71%,/... (6 Replies)
Discussion started by: vharsha
6 Replies

10. Shell Programming and Scripting

Telnet Bash Script (Connection closed by foreign host.)

Hello Everyone, My following script is giving me problems, when the SIP trunk goes down and the telnet session is started and just when the command is about to complete the connection is closed then script restarts. I have noticed that as soon the script types in "sys re" or "sys rebo" or... (6 Replies)
Discussion started by: jeetz
6 Replies
VIEW-OS(1)						      General Commands Manual							VIEW-OS(1)

NAME
mstack - networking stack selection SYNOPSIS
mstack [-hv] [-o protocol list] stack_mountpoint command DESCRIPTION
In View-OS multiple networking stacks are available to processes at the same time. View-OS supports the msocket(2) system call. mstack defines the default stack (for each address family) that is used when msocket refers to a NULL pathname for its stack. mstack provides also a backward compatibility for all the programs using the obsolete socket(2) system call. The stack mountpoint identifies the stack. In ViewOS it is the mountpoint where the stack was mounted (by mount(2)(8). In fact the call: "socket(domain,type,protocol)" is equivalent to: "msocket(NULL,domain,type protocol)" mstacks changes the default stack for the desired protocol families and executes the command (by execve(2)). OPTIONS
-h prints the mstack command usage -v sets the verbose mode on -o defines the list of protocols. Without a -o option, mstack redefines the default stack for all protocols families. The list of proto- cols may include the a comma separated sequence of the following items: all, unix (or simply u), ipv4 (4), ipv6 (6), netlink (n), packet (p), bluetooth (b), irda (i), ip (which include all ip related protocols ipv4, ipv6, netlink and packet), #n where n is the num- ber of protocol. Each item can be prefixed by + or - to specify whether the protocol/group of protocols must be added or removed from the set. EXAMPLES
mstack /dev/net/lwip ip addr lists the address managed by the stack mounted on /dev/net/lwip. exec mstack /dev/net/null bash disables the standard stack in a new bash (which overcomes the current one). mstack -o ip /dev/net/lwip bash starts a new bash which uses the stack /dev/net/lwip for ipv4 and ipv6 but not for the other protocols. mstack -o -unix /dev/net/lwip bash starts a new bash which uses the stack /dev/net/lwip for all protocols but AF_UNIX. mstack -o +ip,-ipv6 /dev/net/lwip bash starts a new bash which uses the stack /dev/net/lwip for ipv4, netlink, packet but not ipv6. SEE ALSO
umview(1), kmview(1), msocket(3), umnetnative(9), umnetnull(9), umnetlwipv6(9), unix(7), ip(7), ipv6(7), netlink(7), packet(7). AUTHORS
View-OS is a project of the Computer Science Department, University of Bologna. Project Leader: Renzo Davoli. <http://www.sourceforge.net/projects/view-os> Howto's and further information can be found on the project wiki <wiki.virtualsquare.org>. VIEW-OS: a process with a view April 23, 2008 VIEW-OS(1)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy