9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone,
This code is working right using mate-terminal but with xfce4-terminal for some reason, it open up an extra tab...
Could someone please help me out to understand why this is happening?
#!/bin/bash
cd "$(dirname "$0")"/files
tab=" --tab"
title=" --title"
options=()... (2 Replies)
Discussion started by: soichiro
2 Replies
2. Shell Programming and Scripting
Ever since I added these two code blocks to my bash menu it just opens and closes right away. I use a batch file that worked fine until these codes were added and I am not sure what is wrong.
Basically, what I am trying to do in the additional section is if the answer is "Y" then it goes back... (13 Replies)
Discussion started by: cmccabe
13 Replies
3. OS X (Apple)
Hi there,
If we have 2 apps on our customers machines that can both open files of a certain file extension, is there any way via shell commands to set which application should be the default?
Essentially, I'm hoping to replicate Get Info > Open With > Change All, but using a script.
Thanks... (0 Replies)
Discussion started by: davewg
0 Replies
4. Shell Programming and Scripting
Any Idea without entering any keystroke I can go to end of line in vi when I opening the file.
When I am opening Vi I want to goto last line.
when I give vi + filename it does not work.
Any clue why it does not work.
Thanks. (3 Replies)
Discussion started by: ekb
3 Replies
5. IP Networking
Hi all,
I have a process with PID as 12456. Could you please let me know how do i find out what is the port that process listens upon in Linux?
Thanks in Advance,
Pankajakshan (2 Replies)
Discussion started by: Pankajakshan
2 Replies
6. Linux
Hi all,
I have a process with PID as 12456. Could you please let me know how do i find out what is the port that process listens upon in Linux?
Thanks in Advance,
Pankajakshan (1 Reply)
Discussion started by: Pankajakshan
1 Replies
7. UNIX for Dummies Questions & Answers
hello everybody
I´m very new at shell and programming :eek: and i have the following question/problem:
I need a script for framemaker (based on shell) which opens a new document from a template (.fm). Then imports a .doc file and then save it as a .mif.
Actually my script works with one... (3 Replies)
Discussion started by: tio86
3 Replies
8. AIX
When I login to a unix box using a putty session , I'm landed in a vi editor, instead of my home directory,I'm guessing instead of pointing me to my home directory, the system points me to /usr/bin/vi. As a result, everytime I log into the system I open up a vi editor and am in there. how do i... (3 Replies)
Discussion started by: ramky79
3 Replies
9. UNIX for Dummies Questions & Answers
when ever I try to vi a file that resides on another machines it takes forever for it to open. Does anyone have any ideas why it would be doing this? I have 7 unix machines and the only two that do this are both running tru64. (6 Replies)
Discussion started by: Moca4444
6 Replies
Locale::US(3pm) User Contributed Perl Documentation Locale::US(3pm)
NAME
Locale::US - two letter codes for state identification in the United States and vice versa.
SYNOPSIS
use Locale::US;
my $u = Locale::US->new;
my $state = $u->{code2state}{$code};
my $code = $u->{state2code}{$state};
my @state = $u->all_state_names;
my @code = $u->all_state_codes;
ABSTRACT
Map from US two-letter codes to states and vice versa.
DESCRIPTION
MAPPING
$self->{code2state}
This is a hashref which has two-letter state names as the key and the long name as the value.
$self->{state2code}
This is a hashref which has the long nameas the key and the two-letter state name as the value.
DUMPING
$self->all_state_names
Returns an array (not arrayref) of all state names in alphabetical form
$self->all_state_codes
Returns an array (not arrayref) of all state codes in alphabetical form.
KNOWN BUGS AND LIMITATIONS
o The state name is returned in "uc()" format.
o neither hash is strict, though they should be.
SEE ALSO
Locale::Country
Locale::Country
Abbreviations
<http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm>
Online file with the USPS two-letter codes for the United States and its possessions.
AUXILIARY CODE:
lynx -dump http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm > kruft.txt
kruft2codes.pl
COPYRIGHT INFO
Copyright (c) 2002 - $present Terrence Brannon.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
License: GPL, Artistic, available in the Debian Linux Distribution at /usr/share/common-licenses/{GPL,Artistic}
AUTHOR
T. M. Brannon, <tbone@cpan.org>
PATCHES
Thanks to stevet AT ibrinc for a patch about second call to new failing.
perl v5.12.4 2011-08-03 Locale::US(3pm)