04-10-2008
suvendu4urs wants to replace the CRs with spaces, not delete them.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have seen there are many sed posts but still it is quite difficult to apply other post to my own problem
How can I delete all lines in a file from 2 lines after this pattern
*End_fine_coreg:_NORMAL
to the end of file?
Cheers (2 Replies)
Discussion started by: larne
2 Replies
2. Shell Programming and Scripting
I want to delete lines like this
sed '/FROM_HERE/,/TO_HERE/d'
but I would like to *not* delete the second match, i.e. the TO_HERE line. How can I achieve this?
Thank you! (1 Reply)
Discussion started by: Ilja
1 Replies
3. Shell Programming and Scripting
say i have a file with the following contents
0x20
0x20
0xc23886
> 0xc12354
> 0xc567555555
i want to delete "> " pattern and keep the rest of the file (6 Replies)
Discussion started by: lassimanji
6 Replies
4. Shell Programming and Scripting
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies
5. Shell Programming and Scripting
As an example (just an example, this could apply to any block of text) say I have this:
architecture x86_64
cputype CPU_TYPE_X86_64
cpusubtype CPU_SUBTYPE_X86_64_ALL
offset 4096
size 2972420
align 2^12 (4096)
architecture ppc64
cputype CPU_TYPE_POWERPC64
cpusubtype... (3 Replies)
Discussion started by: pcwiz
3 Replies
6. Shell Programming and Scripting
I am trying to delete a pattern without removing line. I searched a lot in this forum and using those I could come up with sed command but it seems that command does not work. Here's how my file looks like:
1 ./63990 7
1171 ./63990 2
2425 ./63990 9
2539 ./63990 1
3125 ./63990 1
10141... (7 Replies)
Discussion started by: shoaibjameel123
7 Replies
7. Shell Programming and Scripting
Hi,
I have a file:
5 T1AxialPremosaic ok 512 448 23 1 284000-000005-000001.dcm
6 T2_SPACE ok 256 256 176 1 465000-000006-000001.dcm
7 FLAIRmosaic ok 512 432 23 1 748000-000007-000001.dcm
8 T2_SPACE ok 256 256 1 171000-000008-000001.dcm
9 T2_SPACE ok 256 256 1 218000-000009-000001.dcm... (5 Replies)
Discussion started by: goodbenito
5 Replies
8. UNIX for Dummies Questions & Answers
Hi
I have a file:
r58778.3|SOURCES={KEY=f665931a...,fw,221-705}|ERRORS={16_1:T,30_1:T,56_1:C,57_1:T,59_1:A,101_1:A,115:-,158_1:C,186_1:A,204:-,271_1:T,305:-,350_1:C,368_1:G,442_1:C,472_1:G,477_1:A}|SOURCE_1="Contig_1092402550638"(f665931a359e36cea0976db191ff60ff09cc816e)
I want to retain... (15 Replies)
Discussion started by: Alyaa
15 Replies
9. Shell Programming and Scripting
I have a header-detail file that goes like this:
SHP00288820131021110921
ORDER0156605920131021110921INMMMMFN
DETAIL0004 4C2Z 10769 AAFC 0000009600000094 4C2Z 10769 AAFC 0000672107 OIL
DETAIL0002 ER3Z 14300 E 0000001300000012 ER3Z 14300 E 0000672107 OIL... (3 Replies)
Discussion started by: rbaggio666
3 Replies
10. Shell Programming and Scripting
hi
I have a large xml file from which i have taken few lines . In this file I have to find for the string </invoices> and check if the 3 rd line after this string does not begin with <portCode> ,then i have to delete the string </invoices> and the next line having the string </shippingBill>... (13 Replies)
Discussion started by: sunnyboy
13 Replies
LEARN ABOUT CENTOS
nl-qdisc-list
nl-qdisc(8) System Manager's Manual nl-qdisc(8)
NAME
nl-qdisc-{add|list|delete} - Manage queueing disciplines
SYNOPSIS
nl-qdisc-add --dev dev --parent id [OPTIONS] qdisc-type [QDISC]
nl-qdisc-delete [ --interactive ] [OPTIONS]
nl-qdisc-list [OPTIONS]
DESCRIPTION
The nl-qdisc tools allow to manage and configure queueing disciplines (qdiscs) in the kernel.
OPTIONS
-h or --help
Print help text to console and exit.
-v or --version
Print versioning information to console and exit.
-q or --quiet
Do not print informal notifications about actions taken to the console. By default a short description of each qdisc
added/update/deleted will be printed to the console. This option disables this behaviour.
-d or --dev=DEV
Network device the qdisc is attached to.
-p or --parent=ID
Identifier of the parent qdisc/class this qdisc is attached to. The identifier can be specified as classid, name or one of the spe-
cial values "root" or "ingress".
-i or --id=ID
Identifier of qdisc. It can be specified as classid or name.
nl-qdisc-add Options
--update
Update qdisc if it already exists, otherwise attempting to add a qdisc which already exists will result in an error. This does not
include changing the type of the qdisc, use --replace if you wish to do so.
--replace
Replace or update qdisc if it already exists. Same behaviour as --update but will completely replace the qdisc if it exists already.
--update-only
Update an existing qdisc but do not create it if it does not exist.
--replace-only
Update or replace an existing qdisc but do not create it if it does exist.
nl-qdisc-delete Options
--interactive
The interactive mode requires confirmation by the user for each qdisc deleted. It will print a prompt for each qdisc matching the
provided filter and requires the user to answer 'y'es or 'n'o.
--yes Make the default answer for interactive prompts be 'y'es. This option is also required to delete all qdiscs on all network devices.
-k or --kind=TYPE
Only delete qdiscs of this type.
nl-qdisc-list Options
--details
Show detailed information for each qdisc listed.
--stats
Show statistics information for each qdisc listed. This option will also turn on detailed information automatically.
-r or --recursive
List all TC objects recurisvely attached to all qdiscs matching the filter.
-k or --kind=TYPE
Only list qdiscs of this type.
USAGE
Add a HTB root qdisc with id "5:":
nl-qdisc-add --dev eth0 --parent root --id 5: htb
List all qdiscs on eth0 and print statistical data:
nl-qdisc-list --stats --dev eth0
Delete the qdisc "5:":
nl-qdisc-delete --id 5:
SEE ALSO
nl-classid-lookup(8)
AUTHOR
Thomas Graf is the original author and current maintainer of libnl and libnl tools. Many people have contributed to it since.
libnl 21 October 2010 nl-qdisc(8)