Or a very small tweek to the original code I posted:
If you're needing this from a compiled programme, I'd do the work in the programme.
Wow, that code was impressive...
It's exactly what i wanted !
The code that i use with .txts has a little problems with columns...it's not lined up..
But this is perfect i think ...!
I don't know maybe it's a little too "specialized" for my project but thanks it's really educational..
Only a question, if i need to run this command inside a C programm under UNIX shell i should use the system(); and put inside the parenthesis the command??
Anyway thanks!
hi All,
Thi sis very urgent.
I have large files with pipe delimited.
For example:
1.txt
1001024|120|9|-0.0|#|
1001025|120|9|#|
1001026|120|9|#|
1001032|120|2|-0.0|#|
1002026|110|9|#|
1002027|110|9|-0.0|#|
1002028|120|1|1.0|#|
I need to replace the 4th filed if it is # by |-|
my... (2 Replies)
I have a input file that has some common values in 1st,2nd and 3rd columns. 4th and 5th are different. Now I would like to print the mean of the fourth column of similar values in 1st.2nd and 3rd columns along with all the values in 5th column.
input
NM_0 1.22 CR5 0.4 n_21663... (10 Replies)
HELLO! This is my first post here! By the way, I think it is great that people do this.
My question:
I have two files, one is a .dilm and one is a .txt. It is my understanding that the .dilm file can be treated as a .txt file. I wrote another program where I was able to manipulate it as if it... (3 Replies)
I have this space delimited large text file with more than 1,000,000+ columns and about 100 rows. I want to delete all the columns that start with NA such that:
File before modification
aa bb cc NA100 dd
aa b1 c2 NA101 de
File after modification
aa bb cc dd
aa b1 c2 de
How would I... (3 Replies)
Hi group,
Can you please tell how to delete specific columns from a file.
I know something like
awk -F, '{ print $1" "$2" "15 }' input.txt > output.txt will delete all other columns. But this is in a way to copy some particular columns.
But is there any other way to select just some... (11 Replies)
I am trying to find a specific set of characters in a long file. I only want to find the characters in column 265 for 4 bytes.
Is there a search for that? I tried cut but couldn't get it to work.
Ex. I want to find '9999' in column 265 for 4 bytes. If it is in there, I want it to print... (12 Replies)
Hi
I have a file which is tab-delimited. Now, I'd like to print the lines which have "chr6" string in both first and second columns. Could anybody help? (3 Replies)
Hi,
I'd like to intersect two files by the 4th col of the first file and 6th col of the second file. This is the code I use:
awk 'NR==FNR{A;next}$6 File1 File2
However, this is only outputting the second file lines. I'd like to have both lines in a single line separated by a tab.
Thanks in... (25 Replies)
I am trying to search a list of strings from a file and display the string as well as the column in the search file it was found. I dont care about the row. what is wrong with my script?
while read line; do awk -v var="$line" '{for(i=1;i<NF;i++) if ($NF==$var) break; print $var FS $NF' }'... (3 Replies)
i have a file (csv or txt or anything which has 4 columns (id,name,number,location) and it contains data. i want to convert the data of specific columns like name to ooooo and number to 88888 matching the field length of that columns.
for example
if name column has
anthony which is 7, it should... (2 Replies)
Discussion started by: prajaktaraut
2 Replies
LEARN ABOUT OPENSOLARIS
tc-hfsc
HFSC(8) Linux HFSC(8)NAME
HFSC - Hierarchical Fair Service Curve's control under linux
SYNOPSIS
tc qdisc add ... hfsc [ default CLASSID ]
tc class add ... hfsc [ [ rt SC ] [ ls SC ] | [ sc SC ] ] [ ul SC ]
rt : realtime service curve
ls : linkshare service curve
sc : rt+ls service curve
ul : upperlimit service curve
o at least one of rt, ls or sc must be specified
o ul can only be specified with ls or sc
SC := [ [ m1 BPS ] d SEC ] m2 BPS
m1 : slope of the first segment
d : x-coordinate of intersection
m2 : slope of the second segment
SC := [ [ umax BYTE ] dmax SEC ] rate BPS
umax : maximum unit of work
dmax : maximum delay
rate : rate
For description of BYTE, BPS and SEC - please see UNITS section of tc(8).
DESCRIPTION (qdisc)
HFSC qdisc has only one optional parameter - default. CLASSID specifies the minor part of the default classid, where packets not classified
by other means (e.g. u32 filter, CLASSIFY target of iptables) will be enqueued. If default is not specified, unclassified packets will be
dropped.
DESCRIPTION (class)
HFSC class is used to create a class hierarchy for HFSC scheduler. For explanation of the algorithm, and the meaning behind rt, ls, sc and
ul service curves - please refer to tc-hfsc(7).
As you can see in SYNOPSIS, service curve (SC) can be specified in two ways. Either as maximum delay for certain amount of work, or as a
bandwidth assigned for certain amount of time. Obviously, m1 is simply umax/dmax.
Both m2 and rate are mandatory. If you omit other parameters, you will specify linear service curve.
SEE ALSO tc(8), tc-hfsc(7), tc-stab(8)
Please direct bugreports and patches to: <netdev@vger.kernel.org>
AUTHOR
Manpage created by Michal Soltys (soltys@ziu.info)
iproute2 31 October 2011 HFSC(8)