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
CHOPTEST(8)						      System Manager's Manual						       CHOPTEST(8)

NAME
choptest - HylaFAX page chopping test program SYNOPSIS
/usr/sbin/choptest [ options ] input.tif DESCRIPTION
choptest is a program for testing the page chopping support in the HylaFAX software (specifically, in the faxq(8) program). choptest ana- lyzes a TIFF/F (TIFF Class F) file with 1-D MH- or 2-D MR-encoded data and reports what the automatic page chopping logic would do if the file were submitted for transmission. Options are provided for controlling whether choptest checks the last page or all pages of the docu- ment, and what whitespace threshold to use in deciding if a page should be chopped. OPTIONS
-a Chop all pages in the document. This is equivalent to setting the PageChop configuration parameter to ``all''; c.f. hylafax- config(5). By default only the last page of the document is considered. -t inches Set the minimum whitespace threshold that must be present on a page for it to be chopped. This is equivalent to the Page- ChopThreshold configuration parameter; c.f. hylafax-config(5). By default choptest requires that at least 3 inches of trailing whitespace be present. EXAMPLES
The following shows a multi-page, high-resolution document. Each page has insufficient whitespace for it to be chopped. hyla% ./choptest -a ~/tiff/pics/faxix.tif Chop pages with >=3" of white space at the bottom. Don't chop, found 67 rows, need 588 rows Don't chop, found 67 rows, need 588 rows Don't chop, found 67 rows, need 588 rows Don't chop, found 53 rows, need 588 rows Don't chop, found 91 rows, need 588 rows Don't chop, found 99 rows, need 588 rows Don't chop, found 47 rows, need 588 rows SEE ALSO
faxq(8), hylafax-config(5) October 3, 1995 CHOPTEST(8)
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy