Sponsored Content
Top Forums Shell Programming and Scripting Need script for Itanium server Post 302644073 by bakunin on Monday 21st of May 2012 09:16:50 AM
Old 05-21-2012
Quote:
Originally Posted by mohtashims
I dont think this script will work if the file name is "card_xyz_something_something_10.87.162.211.csv"
You know what? Me neither. But it would have been a nice thing to define your problem correctly instead of letting me guess. I am a Sysadmin, being a psychic is not part of the job description.

Quote:
So, what I would like is the "_" just before the IP address to be considered for chopping off anything prior to that so I am just left with the IP address.

Can you please help tweak it and get it working for me ?
Yes, i can. Replace:
Code:
     chIP="${chIP#card_}"             # chop off the leading "card_"

with this:

Code:
     chIP="${chIP##card_*_}"          # chop off the leading "card_" and everything up to the last "_"

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. HP-UX

How Many CPUs? (Itanium)

I've got a dual CPU Itanium server that we use for hosting our Oracle database. It's been up and running fine for quite some time. So well, in fact, that I haven't even looked at 'top' in a while. Recently I needed to look at 'top' and I only see one CPU listed now. CPU0. Is there any other... (5 Replies)
Discussion started by: deckard
5 Replies

2. HP-UX

Does HP-UX On Itanium always come with PA-RISC compatibility

Does anybody know if HP-UX on Itanium always comes with backwards compatibility for PA-RISC applications? I've heard that there is an emulator called Aries which should do the trick, I just need to know if it always comes as standard with HP-UX Itanium systems. Any help would be greatly... (3 Replies)
Discussion started by: nialler
3 Replies

3. UNIX for Advanced & Expert Users

What Are the Differences Between Itanium and x86_64 CPUs?

This is definitely a "stupid" question, but I can't think of anywhere else to ask it, so here goes. My knowledge of CPU history on big iron machines starts with the last DEC Alphas, a short stint with Sun servers, PA-RISC and Itanium, Intel 486s on the desktop before that, and Motorola 68000 CPUs... (4 Replies)
Discussion started by: deckard
4 Replies

4. HP-UX

Install tcsh on HP-UX 11.31 itanium

I have 2 servers , both are HP-UX specifications as follows : (1) HP-UX adroit B.10.20 A 9000/785 2013264127 one-user license (2) HP-UX xen B.11.31 U ia64 2662515494 one-user license First one has tcsh installed adroit:/home/seo/hitendra 22 ] which tcsh /usr/bin/tcsh But the... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

5. What is on Your Mind?

Oracle stops Itanium development

According to the press release, Oracle will stop supporting the Itanium platform altogether, including all databases. Just out of curiosity: what selling-points will there be left for Itanium servers? From personal experience I know that the ports of FLOS software are mostly very out of date... (4 Replies)
Discussion started by: pludi
4 Replies

6. UNIX for Advanced & Expert Users

Compiling git in HPUX 11.31 itanium

Hello, Would you know the steps on how to compile git command in HPUX? (1 Reply)
Discussion started by: SystemAddict
1 Replies

7. HP-UX

Gcc and C/aC++ co-existing on HP-UX Itanium system

Our company developed applications on an HP-UX 11 Itanium system using gcc. We did not have HP's C/aC++ system installed. We are now attempting to install/run on a customer system that already has C/aC++ on it. Can gcc (gcc-4.3.2, or just the runtime libraries gcclib-4.3.2) be installed and... (1 Reply)
Discussion started by: northb
1 Replies

8. HP-UX

Shc command for hp UNIX 11.23 itanium

(2 Replies)
Discussion started by: sagar_1986
2 Replies

9. HP-UX

PDFtk for HP-UX 11.31 Itanium 64

Hi Unix and HP-US experts, I have a need to encrypt/give password to PDF files in HP-UX servers, but unfortunately I am new to unix and hp-ux. My server is HP-UX 11.31 running on Itanium 64 bit architecture. I have downloaded and installed PDFtk from this link:... (1 Reply)
Discussion started by: villium
1 Replies

10. HP-UX

Installation of gnome 1.4 for HP itanium

Hi I can't download gnome from HP website because links are broken: I can only download patch for Gnome. Can you help me? --- Post updated at 05:18 PM --- I realized that I have to register on their website with the software depot to download it. (0 Replies)
Discussion started by: gbudny
0 Replies
PAPS(1) 						      General Commands Manual							   PAPS(1)

NAME
paps - UTF-8 to PostScript converter using Pango SYNOPSIS
paps [options] files... DESCRIPTION
paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file. The rendering is done by creating outline curves through the pango ft2 backend. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. --landscape Landscape output. Default is portrait. --columns=cl Number of columns output. Default is 1. --font=desc Set the font description. Default is Monospace 12. --rtl Do rtl layout. --paper ps Choose paper size. Known paper sizes are legal, letter, a4. Default is A4. --bottom-margin=bm Set bottom margin in postscript points (1/72 inch). Default is 36. --top-margin=tm Set top margin. Default is 36. --left-margin=lm Set left margin. Default is 36. --right-margin=rm Set right margin. Default is 36. --help Show summary of options. --header Draw page header for each page. --markup Interpret the text as pango markup. --encoding=ENCODING Assume the documentation encoding is ENCODING. --lpi Set the lines per inch. This determines the line spacing. --cpi Set the characters per inch. This is an alternative method of specifying the font size. --stretch-chars Indicates that characters should be stretched in the y-direction to fill up their vertical space. This is similar to the texttops behaviour. AUTHOR
paps was written by Dov Grobgeld <dov.grobgeld@gmail.com>. This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others). April 17, 2006 PAPS(1)
All times are GMT -4. The time now is 04:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy