But they are, hexdump and translation to unicode gives
And even if they weren't, wouldn't they be changed by ${line//[^a-z]/} since they are not [a-z]?
:/
[edit]:
And by the way, if I use sed to do the substitution it works on the José... lines to... it even removes some of them completely.
Hi all-
I have a variable that contains a web page:
echo $STUFF
<html> <head> <title>my page</title></head> <body> blah blah etc..
Can I use the shell's parameter expansion abilities to remove just the tags?
I thought that FIXHTML=${STUFF//<*>/} might do it, but it didn't seem to... (2 Replies)
Say you have this numeric variable that can be set by the user but you never want it to leave a certain range when it gets printed. How could you use parameter expansion such that it will never expand outside of that boundary? Thanks
---------- Post updated at 11:09 PM ---------- Previous update... (3 Replies)
Hi -
I am trying to do a simple config file with known variable names in it, e.g.:
contents of config file a.conf: -a
-b $work
-c $host
simplified contents of bash script file: work='trunk'
host='alaska'
opts=$(tr '\n' ' ' < a.conf)
opts="$opts $*"
mycommand $opts arg1 arg2
The... (3 Replies)
Hello experts,
I am exploring parameter expansion, and trying to cut the fields in a URL.
Following is the requirement:
I have
// abc.nnt /dir1/dir2/dir3/dir4/somefile.java
What i need to get is the path after dir3, and dir3 will be passed.
output that i need is... (1 Reply)
I'm using an Ubuntu machine and expansion is not working properly. What would cause this? Do I need to check for any particular bash packages?
$ ipcs -m | grep $USER | awk '{printf "%s ",$2}'
$ ipcs -m | grep UNF | awk '{printf "%s ",$2}'
294912 1048577 425986 688131 786436 1245189... (14 Replies)
I have made the following examples that print various parameter expansions
text: iv-hhz-sac/hpac/hhz.d/iv.hpac..hhz.d.2016.250.070018.sac
(text%.*): iv-hhz-sac/hpac/hhz.d/iv.hpac..hhz.d.2016.250.070018
(text%%.*): iv-hhz-sac/hpac/hhz
(text#*.): d/iv.hpac..hhz.d.2016.250.070018.sac... (2 Replies)
#!/bin/bash
SNMPW='/usr/bin/snmpwalk'
while read h i
do
loc=$($SNMPW -v3 -u 'Myusername' -l authPriv -a SHA -A 'Password1' -x AES -X 'Password2' $i sysLocation.0 2>/dev/null)
loc=${loc:-" is not snmpable."}
loc=${loc##*: }
loc=${loc//,/}
echo "$i,$h,$loc"
done < $1
My question is ... ... (1 Reply)
I am trying to become more fluent with the interworking of bash and minimize the number of external calls.
Sample Data. This will be the response of the snmp query.
SNMPv2-MIB::sysName.0 = STRING: SomeHostName
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.1745... (5 Replies)
Example data
$ ls *somehost*
10.10.10.10_somehost1.xyz.com.log
11.11.11.11_somehost2.xyz.com.log
#!/bin/bash
#FILES="*.log"
FILES=${FILES:-*.log}
for x in $FILES
do
ip="${x%%_*}" # isolate IP address
x="${x##*_}" # isolate hostname
hnam="${x%.*}" # Remove the ".log"... (2 Replies)
Hello All,
Could you please do help me here as I would like to perform parameter expansion in shell over a parameter expansion.
Let's say I have following variable.
path="/var/talend/nat/cdc"
Now to get only nat I could do following.
path1="${path%/*}"
path1="${path1##*/}"
Here... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
LEARN ABOUT LINUX
iso-8859-14
ISO_8859-14(7) Linux Programmer's Manual ISO_8859-14(7)NAME
iso_8859-14 - the ISO 8859-14 character set encoded in octal, decimal, and hexadecimal
DESCRIPTION
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-14 encodes the
characters used in Celtic languages.
ISO 8859 Alphabets
The full set of ISO 8859 alphabets includes:
ISO 8859-1 West European languages (Latin-1)
ISO 8859-2 Central and East European languages (Latin-2)
ISO 8859-3 Southeast European and miscellaneous languages (Latin-3)
ISO 8859-4 Scandinavian/Baltic languages (Latin-4)
ISO 8859-5 Latin/Cyrillic
ISO 8859-6 Latin/Arabic
ISO 8859-7 Latin/Greek
ISO 8859-8 Latin/Hebrew
ISO 8859-9 Latin-1 modification for Turkish (Latin-5)
ISO 8859-10 Lappish/Nordic/Eskimo languages (Latin-6)
ISO 8859-11 Latin/Thai
ISO 8859-13 Baltic Rim languages (Latin-7)
ISO 8859-14 Celtic (Latin-8)
ISO 8859-15 West European languages (Latin-9)
ISO 8859-16 Romanian (Latin-10)
ISO 8859-14 Characters
The following table displays the characters in ISO 8859-14, which are printable and unlisted in the ascii(7) manual page. The fourth col-
umn will only show the proper glyphs in an environment configured for ISO 8859-14.
Oct Dec Hex Char Description
----------------------------------------------------------------
240 160 a0 NO-BREAK SPACE
241 161 a1 LATIN CAPITAL LETTER B WITH DOT ABOVE
242 162 a2 LATIN SMALL LETTER B WITH DOT ABOVE
243 163 a3 L POUND SIGN
244 164 a4 LATIN CAPITAL LETTER C WITH DOT ABOVE
245 165 a5 LATIN SMALL LETTER C WITH DOT ABOVE
246 166 a6 LATIN CAPITAL LETTER D WITH DOT ABOVE
247 167 a7 S SECTION SIGN
250 168 a8 LATIN CAPITAL LETTER W WITH GRAVE
251 169 a9 (C) COPYRIGHT SIGN
252 170 aa LATIN CAPITAL LETTER W WITH ACUTE
253 171 ab LATIN SMALL LETTER D WITH DOT ABOVE
254 172 ac LATIN CAPITAL LETTER Y WITH GRAVE
255 173 ad SOFT HYPHEN
256 174 ae (R) REGISTERED SIGN
257 175 af LATIN CAPITAL LETTER Y WITH DIAERESIS
260 176 b0 LATIN CAPITAL LETTER F WITH DOT ABOVE
261 177 b1 LATIN SMALL LETTER F WITH DOT ABOVE
262 178 b2 LATIN CAPITAL LETTER G WITH DOT ABOVE
263 179 b3 LATIN SMALL LETTER G WITH DOT ABOVE
264 180 b4 LATIN CAPITAL LETTER M WITH DOT ABOVE
265 181 b5 LATIN SMALL LETTER M WITH DOT ABOVE
266 182 b6 9| PILCROW SIGN
267 183 b7 LATIN CAPITAL LETTER P WITH DOT ABOVE
270 184 b8 LATIN SMALL LETTER W WITH GRAVE
271 185 b9 LATIN SMALL LETTER P WITH DOT ABOVE
272 186 ba LATIN SMALL LETTER W WITH ACUTE
273 187 bb LATIN CAPITAL LETTER S WITH DOT ABOVE
274 188 bc LATIN SMALL LETTER Y WITH GRAVE
275 189 bd LATIN CAPITAL LETTER W WITH DIAERESIS
276 190 be LATIN SMALL LETTER W WITH DIAERESIS
277 191 bf LATIN SMALL LETTER S WITH DOT ABOVE
300 192 c0 A LATIN CAPITAL LETTER A WITH GRAVE
301 193 c1 A LATIN CAPITAL LETTER A WITH ACUTE
302 194 c2 A LATIN CAPITAL LETTER A WITH CIRCUMFLEX
303 195 c3 A LATIN CAPITAL LETTER A WITH TILDE
304 196 c4 A LATIN CAPITAL LETTER A WITH DIAERESIS
305 197 c5 A LATIN CAPITAL LETTER A WITH RING ABOVE
306 198 c6 AE LATIN CAPITAL LETTER AE
307 199 c7 C LATIN CAPITAL LETTER C WITH CEDILLA
310 200 c8 E LATIN CAPITAL LETTER E WITH GRAVE
311 201 c9 E LATIN CAPITAL LETTER E WITH ACUTE
312 202 ca E LATIN CAPITAL LETTER E WITH CIRCUMFLEX
313 203 cb E LATIN CAPITAL LETTER E WITH DIAERESIS
314 204 cc I LATIN CAPITAL LETTER I WITH GRAVE
315 205 cd I LATIN CAPITAL LETTER I WITH ACUTE
316 206 ce I LATIN CAPITAL LETTER I WITH CIRCUMFLEX
317 207 cf I LATIN CAPITAL LETTER I WITH DIAERESIS
320 208 d0 LATIN CAPITAL LETTER W WITH CIRCUMFLEX
321 209 d1 N LATIN CAPITAL LETTER N WITH TILDE
322 210 d2 O LATIN CAPITAL LETTER O WITH GRAVE
323 211 d3 O LATIN CAPITAL LETTER O WITH ACUTE
324 212 d4 O LATIN CAPITAL LETTER O WITH CIRCUMFLEX
325 213 d5 O LATIN CAPITAL LETTER O WITH TILDE
326 214 d6 O LATIN CAPITAL LETTER O WITH DIAERESIS
327 215 d7 LATIN CAPITAL LETTER T WITH DOT ABOVE
330 216 d8 O LATIN CAPITAL LETTER O WITH STROKE
331 217 d9 U LATIN CAPITAL LETTER U WITH GRAVE
332 218 da U LATIN CAPITAL LETTER U WITH ACUTE
333 219 db U LATIN CAPITAL LETTER U WITH CIRCUMFLEX
334 220 dc U LATIN CAPITAL LETTER U WITH DIAERESIS
335 221 dd Y LATIN CAPITAL LETTER Y WITH ACUTE
336 222 de LATIN CAPITAL LETTER Y WITH CIRCUMFLEX
337 223 df B LATIN SMALL LETTER SHARP S
340 224 e0 a LATIN SMALL LETTER A WITH GRAVE
341 225 e1 a LATIN SMALL LETTER A WITH ACUTE
342 226 e2 a LATIN SMALL LETTER A WITH CIRCUMFLEX
343 227 e3 a LATIN SMALL LETTER A WITH TILDE
344 228 e4 a LATIN SMALL LETTER A WITH DIAERESIS
345 229 e5 a LATIN SMALL LETTER A WITH RING ABOVE
346 230 e6 ae LATIN SMALL LETTER AE
347 231 e7 c LATIN SMALL LETTER C WITH CEDILLA
350 232 e8 e LATIN SMALL LETTER E WITH GRAVE
351 233 e9 e LATIN SMALL LETTER E WITH ACUTE
352 234 ea e LATIN SMALL LETTER E WITH CIRCUMFLEX
353 235 eb e LATIN SMALL LETTER E WITH DIAERESIS
354 236 ec i LATIN SMALL LETTER I WITH GRAVE
355 237 ed i LATIN SMALL LETTER I WITH ACUTE
356 238 ee i LATIN SMALL LETTER I WITH CIRCUMFLEX
357 239 ef i LATIN SMALL LETTER I WITH DIAERESIS
360 240 f0 LATIN SMALL LETTER W WITH CIRCUMFLEX
361 241 f1 n LATIN SMALL LETTER N WITH TILDE
362 242 f2 o LATIN SMALL LETTER O WITH GRAVE
363 243 f3 o LATIN SMALL LETTER O WITH ACUTE
364 244 f4 o LATIN SMALL LETTER O WITH CIRCUMFLEX
365 245 f5 o LATIN SMALL LETTER O WITH TILDE
366 246 f6 o LATIN SMALL LETTER O WITH DIAERESIS
367 247 f7 LATIN SMALL LETTER T WITH DOT ABOVE
370 248 f8 o LATIN SMALL LETTER O WITH STROKE
371 249 f9 u LATIN SMALL LETTER U WITH GRAVE
372 250 fa u LATIN SMALL LETTER U WITH ACUTE
373 251 fb u LATIN SMALL LETTER U WITH CIRCUMFLEX
374 252 fc u LATIN SMALL LETTER U WITH DIAERESIS
375 253 fd y LATIN SMALL LETTER Y WITH ACUTE
376 254 fe LATIN SMALL LETTER Y WITH CIRCUMFLEX
377 255 ff y LATIN SMALL LETTER Y WITH DIAERESIS
NOTES
ISO 8859-14 is also known as Latin-8.
SEE ALSO ascii(7)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-09-20 ISO_8859-14(7)