03-27-2002
delete some line
Hi All,
I have a file it contains 1600 lines. it is like
aaa,bbb,ccc,ddd,eee
xxx,bbb,fff,hhh,uuu
vvv,mmm,kkk,ppp
....
I want to delete lines which contains "bbb". (there are to many lines for "bbb")
how can I do this ??
Thanks
Alice.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello experts,
I have a file: File1 Sample Test1
This is a Test
Sample Test2
Another Test
Final Test3
A final Test
I can use sed to delete the line with specific text
ie: sed '/Test2/d' File1.txt > File2.txt
How can I delete the line with the matching text and the line immediately... (6 Replies)
Discussion started by: orahi001
6 Replies
2. Shell Programming and Scripting
My data is xml'ish (here is an excerpt) :-
<bag name="mybag1" version="1.0"/>
<contents id="coins"/>
<bag name="mybag2" version="1.1"/>
<contents id="clothes"/>
<contents id="shoes"/>
<bag name="mybag3" version="1.6"/>
I want to delete line containing mybag2 and its subsequent... (5 Replies)
Discussion started by: repudi8or
5 Replies
3. Shell Programming and Scripting
Hi,
I want to write a sed script which from
batiato:
batiato/giubbe:
pip_b.2.txt
pip_b.3.txt
pip_b.3mmm.txt
bennato:
bennato/peterpan:
123.txt
consoli:
pip_a.12.txt
daniele: (2 Replies)
Discussion started by: one71
2 Replies
4. Shell Programming and Scripting
I'm new to using sed and grep commands, but have found them extremely useful. However I am having a hard time figuring this one out:
Delete every line containing the word CEN and the next line as well.
ie. test.txt
blue
324 CEN
green
red
blue
324 CEN
green
red
blue
to produce:... (2 Replies)
Discussion started by: rocketman88
2 Replies
5. Shell Programming and Scripting
I'm looking for a way to search a file, in this case init.rc for a specific match, service adbd /sbin/adbd, and delete the a specific line after it
Original:
# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd
disabled
After deletion:
#... (5 Replies)
Discussion started by: GabrialDestruir
5 Replies
6. Shell Programming and Scripting
Hi folks,
I've list of LDAP records in this format:
cat cmmac.export.tmp2
dn: deviceId=0a92746a54tbmd34b05758900131136a506,ou=devices,ou=customer,ou=nl,o=upc
cmmac: 00:13:11:36:a5:06
dn: deviceId=0a92746a62pbms4662299650015961cfa23,ou=devices,ou=customer,ou=nl,o=upc
cmmac:... (4 Replies)
Discussion started by: tomas.polak
4 Replies
7. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
8. UNIX for Advanced & Expert Users
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies
9. UNIX for Dummies Questions & Answers
Friends,
I am in need to delete files from a directory on a regular basis. I want to place all the files to be deleted in delete .txt file and require a script to delete files, line by line from this delete.txt file. Please help me with this script as am new to unix scripting. (3 Replies)
Discussion started by: fop4658
3 Replies
10. Programming
Could you tell me the possibilities of the reason to get the Mismatched free() / delete / delete .
I unable to see the line no in the valgrind report. it displays the function name. with that function name, I am not able to find where exactly the issue is there.I am getting the Mismatched free()... (3 Replies)
Discussion started by: SA_Palani
3 Replies
LEARN ABOUT DEBIAN
hp-firmware
hp-firmware(1) User Manuals hp-firmware(1)
NAME
hp-firmware - Firmware Download Utility
DESCRIPTION
Download firmware to a device that requires downloaded firmware to function. (Note: Most printers do not require the use of this utility).
SYNOPSIS
hp-firmware [DEVICE_URI|PRINTER_NAME] [MODE] [OPTIONS]
PRINTER
|DEVICE-URI
To specify a device-URI:
-d<device-uri> or --device=<device-uri>
To specify a CUPS printer:
-p<printer> or --printer=<printer>
MODE
Run in graphical UI mode:
-u or --gui (Default)
Run in interactive mode:
-i or --interactive
Run in non-interactive mode:
-n or --non-interactive
OPTIONS
Use Qt4:
--qt4 (Default)
Set the logging level:
-l<level> or --logging=<level> <level>: none, info*, error, warn, debug (*default)
Run in debug mode:
-g (same as option: -ldebug)
This help information:
-h or --help
Use USB IDs to specify printer:
-s bbb:ddd, where bbb is the USB bus ID and ddd is the USB device ID. The ':' and all leading zeroes must be present.
Seconds to delay before download:
-y<secs> or --delay=<secs> (float value, e.g. 0.5)
SEE ALSO
hp-plugin hp-toolbox
AUTHOR
HPLIP (Hewlett-Packard Linux Imaging and Printing) is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
REPORTING BUGS
The HPLIP Launchpad.net site https://launchpad.net/hplip is available to get help, report bugs, make suggestions, discuss the HPLIP project
or otherwise contact the HPLIP Team.
COPYRIGHT
Copyright (c) 2001-14 Hewlett-Packard Development Company, L.P.
This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See
COPYING file for more details.
Linux 2.4 hp-firmware(1)