Sponsored Content
Full Discussion: Chemist Needs Help part II
Top Forums UNIX for Dummies Questions & Answers Chemist Needs Help part II Post 302269728 by vbe on Thursday 18th of December 2008 11:19:15 AM
Old 12-18-2008
Jim:
Code:
ant:/test $ awk '{ if (NR>8) {print $1, $2} else {continue}}' transport.txt > newfile
ant:/test $ more newfile                                                       
 
E/N Ko
 
0.69 3.8107
2.11 3.8124
2.96 3.8143
3.55 3.8159
4.26 3.8183
5.10 3.8217
5.86 3.8252
6.74 3.8298
7.74 3.8358
8.50 3.8408
9.34 3.8468
10.26 3.8540
10.75 3.8581
11.28 3.8625
11.83 3.8673
12.40 3.8725
13.01 3.8780
13.64 3.8839
14.30 3.8903
14.98 3.8970
15.70 3.9043
16.46 3.9119
17.24 3.9199
17.55 3.9232
17.89 3.9266
18.23 3.9301
....
.90 2.5105
374.63 2.4879
385.66 2.4655
397.02 2.4434
408.70 2.4216
420.70 2.4001
433.05 2.3788
445.75 2.3579
458.81 2.3372
472.23 2.3169
486.02 2.2968
500.18 2.2771
514.73 2.2577
529.69 2.2386
545.04 2.2198
560.80 2.2013
576.98 2.1831
593.59 2.1653
610.63 2.1477
628.11 2.1305
646.04 2.1136
664.43 2.0970
683.27 2.0807
702.58 2.0648
722.37 2.0492
742.64 2.0339
763.40 2.0190
784.66 2.0046
806.41 1.9910
828.65 1.9616
852.10 1.9598
874.97 1.9483
ant:/test $

HP-UX 11.11...
At least your code works here...

All the best
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help part 2

Ok well this isn't homework or classwork, I have been done with school for many years. I offered to help my co-worker who's daughter needs help. I didn't realize I had got rid of all of my UNIX books until after I agreed to help. (3 Replies)
Discussion started by: penguin123
3 Replies

2. Shell Programming and Scripting

help me in this part

why we use strcpy and strcat in KSH program?? (1 Reply)
Discussion started by: debasis.mishra
1 Replies

3. Shell Programming and Scripting

get integer part

Hi, I did a df|awk| command and it returns a percentage "94%", how could I only get the integer part "94" out of it, so I can compare it to another number, I knwo that I have to pipe it to sth, but "grep " did not work, it still give me number WITH the percentage, does someone know what... (3 Replies)
Discussion started by: ericaworld
3 Replies

4. UNIX for Dummies Questions & Answers

Chemist Needs Help

Hello All I am a chemist and really dont know too much about programming but here goes. Essentially I need to create a script that I can run which will do the following. Create a file where the first four lines are a set of commands that are the same for all the files. E.g ln1: comment... (40 Replies)
Discussion started by: gingburg
40 Replies

5. Shell Programming and Scripting

comparing part of header with part of detailed records.

Hi there, I am lil confused with the following issue. I have a File, which has the following header: IMSHRATE_043008_101016 a sample detailed record is :9820101 A982005000CAVG030108000000000000010169000MAR 2008 9820102 MAR 2008 D030108 ... (1 Reply)
Discussion started by: cmaroju
1 Replies

6. Shell Programming and Scripting

[Solved] Printing a part of the last line of the specific part of a file

Hi, I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this: Name =A xxxxxx yyyyyy zzzzzz aaaaaa bbbbbb Value = 57 This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies

7. Shell Programming and Scripting

Part of log

hi, i have a requirement where i need to grep the part of the log file of last 5 minutes back. 00000011 ViewReceiver I DCSV1033I: DCS Stack DefaultCoreGroup at Member usa0300ux423Cell01\usa0300ux423QASrv02\server1: Confirmed all new view members in view identifier... (4 Replies)
Discussion started by: lovelysethii
4 Replies

8. UNIX for Beginners Questions & Answers

How to make a loop to read the input from a file part by part?

Hi All, We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Discussion started by: arun_adm
6 Replies
Packet sample action in tc(8)					       Linux					     Packet sample action in tc(8)

NAME
sample - packet sampling tc action SYNOPSIS
tc ... action sample rate RATE group GROUP [ trunc SIZE ] [ index INDEX ] tc ... action sample index INDEX DESCRIPTION
The sample action allows sampling packets matching classifier. The packets are chosen randomly according to the rate parameter, and are sampled using the psample generic netlink channel. The user can also specify packet truncation to save user-kernel traffic. Each sample includes some informative metadata about the original packet, which is sent using netlink attributes, alongside the original packet data. The user can either specify the sample action parameters as presented in the first form above, or use an existing sample action using its index, as presented in the second form. SAMPLED PACKETS METADATA FIELDS
The metadata are delivered to userspace applications using the psample generic netlink channel, where each sample includes the following netlink attributes: PSAMPLE_ATTR_IIFINDEX The input interface index of the packet, if there is one. PSAMPLE_ATTR_OIFINDEX The output interface index of the packet. This field is not relevant on ingress sampling PSAMPLE_ATTR_ORIGSIZE The size of the original packet (before truncation) PSAMPLE_ATTR_SAMPLE_GROUP The psample group the packet was sent to PSAMPLE_ATTR_GROUP_SEQ A sequence number of the sampled packet. This number is incremented with each sampled packet of the current psample group PSAMPLE_ATTR_SAMPLE_RATE The rate the packet was sampled with OPTIONS
rate RATE The packet sample rate. RATE is the expected ratio between observed packets and sampled packets. For example, RATE of 100 will lead to an average of one sampled packet out of every 100 observed. trunc SIZE Upon set, defines the maximum size of the sampled packets, and causes truncation if needed group GROUP The psample group the packet will be sent to. The psample module defines the concept of groups, which allows the user to match spe- cific sampled packets in the case of multiple sampling rules, thus identify only the packets that came from a specific rule. index INDEX Is a unique ID for an action. When creating new action instance, this parameter allows to set the new action index. When using existing action, this parameter allows to specify the existing action index. The index must 32bit unsigned integer greater than zero. EXAMPLES
Sample one of every 100 packets flowing into interface eth0 to psample group 12: tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: matchall action sample rate 100 group 12 index 19 Use the same action instance to sample eth1 too: tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: matchall action sample index 19 SEE ALSO
tc(8), tc-matchall(8) psample(1) iproute2 31 Jan 2017 Packet sample action in tc(8)
All times are GMT -4. The time now is 05:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy