Sponsored Content
Full Discussion: [Solved] Data manipulation
Top Forums Shell Programming and Scripting [Solved] Data manipulation Post 302892010 by CarloM on Monday 10th of March 2014 09:27:05 AM
Old 03-10-2014
Where did the commas come from?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Data Manipulation

Hello I am currently having problems in mapulating a certain file which contains vaious data. Belos is a sample content Event=<3190> Client IP=<151.111.11.143> DNS=<abc.sbc.com> TransCount=<139> Client IP=<150.222.133.163> DNS=<xyz.yuu.com> TransCount=<3734> Event=<3120> Client... (11 Replies)
Discussion started by: khestoi
11 Replies

2. Shell Programming and Scripting

Tricky data manipulation...

Hi everyone.. I am new here, hello.. I hope this doesn't come across to you folks as a stupid question, I'm somewhat new to scripting :) I'm seeking some help in finding a way to manipulate data output for every two characters - example: numbers.lst contains the following output:... (3 Replies)
Discussion started by: explicit
3 Replies

3. Shell Programming and Scripting

Data manipulation from one file

HI all i have a file consisting of following numbers 0000 0000 0000 0000 0000 1010 0000 0100 0000 0000 0000 1111 0000 1010 0000 0100 (3 Replies)
Discussion started by: vaibhavkorde
3 Replies

4. UNIX for Dummies Questions & Answers

[Solved] Column manipulation

Hi Everyone, I was wondering if someone could help me to transform my data into a format I need. Here is an example of what my data looks like E F G H A 1 2 3 4 B 5 6 7 8 C 9 1 2 3 D 4 5 6 7 and this is what I would need it to look like: AE 1 BE 5 CE 9 DE 4 AF 2 BF 6 CF 1 (6 Replies)
Discussion started by: zajtat
6 Replies

5. UNIX for Dummies Questions & Answers

Script for data manipulation

Hi all! my first post here, so mods -- if this should ideally be in the scripts section, please move there. Thanks! I have data in the following format: key1:value1 key2:value2 key3:value3 A B C D key1:value4 key2:value5 key3:value6 A1 B1 key1: ... and so on I want an output... (2 Replies)
Discussion started by: gnat01
2 Replies

6. UNIX for Dummies Questions & Answers

[Solved] Text manipulation help

Hello Unix.com How can I sort from a large email list only the emails that finish with .ca domain? cat <list> | grep "\.ca\b" >> <new list> isnt working perfectly. Any tips? Best regards, Galford D. Weller (2 Replies)
Discussion started by: galford
2 Replies

7. Shell Programming and Scripting

[Solved] awk manipulation of sequentially named files

Hello, I am a very novice user of awk, I have a set of files named file001, file002, file003, file004, etc., each contains four fields (columns of data) separated each by a uneven number of spaces. I want to substitute those spaces by a TAB, so I am using this line of awk script: awk -v OFS="\t"... (4 Replies)
Discussion started by: jaldo0805
4 Replies

8. UNIX for Dummies Questions & Answers

Data manipulation

Hallo Team, I need to manipulate existing data file. Have a look at current data and expected data: Current Data: 27873517141 27873540000 27873515109 27873517140 27873540001 27873540000 27873501343 27873540000 27873517140 27873511292 27873645989 27873540000 27873540000... (7 Replies)
Discussion started by: kekanap
7 Replies

9. UNIX for Dummies Questions & Answers

Data Manipulation

Dear Sir, I have file input RGR001|108.28|-2.86489|100-120|RANGGAR RGR002|108.071|-2.69028|80-100|RANNGAR RGR003|108.168|-2.97053|50-80|RANNGAR RGR007|108.192722222|-2.766138889|0-50|RANGGARI want to create files by joining each rows with each rows below Output as below ... (4 Replies)
Discussion started by: radius
4 Replies

10. Shell Programming and Scripting

Data manipulation, Please help..

Hello, I have a huge set of data that needs to be reformatted. Here is a simple example to explain the process. I have number n=5 and a input with many numbers separated with comma: ... (11 Replies)
Discussion started by: liuzhencc
11 Replies
ctstat(1)							   User Commands							 ctstat(1)

NAME
ctstat - display active system contracts SYNOPSIS
/usr/bin/ctstat [-a] [-i contractid...] [-t type...] [-v] [interval [count]] DESCRIPTION
The ctstat utility allows a user to observe the contracts active on a system. Unless you specify the -i or -t option, ctstat displays statistics on all contracts in the system. OPTIONS
The following options are supported: -a Display all contracts regardless of state. By default, this option only displays those contracts which are in the owned, inherited, or orphan states. -i contractid... Request status on the specified contracts, identified by their numeric contract identifier (contract_id). This option accepts lists as arguments . Items in the list can be separated by commas, or enclosed in quotes and separated by commas or spaces. -t type... Request status on contracts of the specified type (type). This option accepts lists as arguments. Items in the list can be separated by commas, or enclosed in quotes and separated by commas or spaces. The following types are supported: process Process contracts -v Verbose output. OPERANDS
The following operands are supported: interval Report once each interval seconds. count Print only count reports. OUTPUT
The following list defines the column headings and the meanings of a ctstat report: CTID The contract ID of the contract. ZONEID The zone ID of the contract's creator. TYPE The contract type. STATE The state of the contract: owned Contract is owned by a process. inherited The contract owner has exited abnormally and the contract has been inherited by the owner's process contract. orphan The contract owner has abandoned the contract, the contract owner exited abnormally and the contract was not inherited by the owner's process contract, or the process contract which had inherited the con- tract was abandoned by its owner. dead The contract is no longer active. It is removed from the system automatically when all references to it (open file descriptors, contract templates, and events) have been released. HOLDER If the contract is in the owned state, the pid of the process that owns the contract. If the contract is in the inherited state, the id of the regent process contract. EVENTS The number of unacknowledged critical events pending. QTIME The time until quantum ends, or - if no negotiation is in progress. NTIME The time until negotiation ends, or - if no negotiation is in progress. EXAMPLES
Example 1: Reporting on all Contracts in the System The following example reports on all contracts in the system: example% ctstat -a CTID TYPE STATE HOLDER EVENTS QTIME NTIME 1 process owned 100579 0 - - 2 process dead - 1 - - 3 process inherit 1 3 - - 4 process orphan - 0 - - Example 2: Obtaining a Verbose Report of All Contracts in the System The following example obtains a verbose report of all contracts in the system: example% ctstat -av CTID TYPE STATE HOLDER EVENTS QTIME NTIME 1 process owned 100579 0 - - informative event set: none critical event set: hwerr core fatal event set: hwerr parameter set: none member processes: 100600 100601 inherited ctids: none 2 process dead - 1 - - informative event set: none critical event set: none fatal event set: hwerr core parameter set: pgrponly member processes: none inherited ctids: none EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 An error occurred. 2 Invalid arguments. FILES
/system/contract/* ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ Human Readable Output is Unstable. Invocation is Evolving. SEE ALSO
ctrun(1), ctwatch(1), contract(4), process(4), attributes(5) SunOS 5.10 15 Jul 2004 ctstat(1)
All times are GMT -4. The time now is 04:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy