HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Awk scripting problem - columns
Operating System - HP-UX
1837883
Members
3446
Online
110122
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 01:57 AM
12-18-2002 01:57 AM
Re: Awk scripting problem - columns
I have tried the revised script and it works the same
as the previous one in that it gives the right data in
the right format except that
all negative values become positive.
What do you mean when you say
"given that columns cannot be negative" ?
Is it not possible to have a negative number in the data
that is still negative once it has gone through the perl
script ?
Luke
as the previous one in that it gives the right data in
the right format except that
all negative values become positive.
What do you mean when you say
"given that columns cannot be negative" ?
Is it not possible to have a negative number in the data
that is still negative once it has gone through the perl
script ?
Luke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 02:19 AM
12-18-2002 02:19 AM
Re: Awk scripting problem - columns
Oops, too greedy.
for a in `ls` ; do
echo processing $a ...
perl -nle'/(\d+)\D+?(-?\d+)/&&$1 and$x[$1-1]=$2}END{$,="|";print@x'$a >$a.res
done
I mean that it would be non-logical to use negative column indices. The revised version accepts negative column data, but not negative column numbers
for a in `ls` ; do
echo processing $a ...
perl -nle'/(\d+)\D+?(-?\d+)/&&$1 and$x[$1-1]=$2}END{$,="|";print@x'$a >$a.res
done
I mean that it would be non-logical to use negative column indices. The revised version accepts negative column data, but not negative column numbers
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 02:36 AM
12-18-2002 02:36 AM
Re: Awk scripting problem - columns
Spot on.
Thank you very much again!
Luke
Thank you very much again!
Luke
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP