10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys ,
I have two files say a1 and a2 having following contents
I want to delete only the lines in a2 which are in a1 and final output of a2 should be
hcm (6 Replies)
Discussion started by: Pradeep_1990
2. Shell Programming and Scripting
sorry iam from germany and my englisch is not so well.
iam searching for less then 4 hours on the web for a solution of my problem.
i have a proxy-log-file and want to delete lines wicht matches on two words.
example of the line in the logfile:
now i want to delet... (3 Replies)
Discussion started by: matze
3. Shell Programming and Scripting
I have a big (2.7 GB) text file. Each lines has '|' saperator to saperate each columns.
I want to delete those lines which has text like '|0|0|0|0|0'
sed '/|0|0|0|0|0/d' test.txt
Unfortunately, it scans the file but does nothing.
file content sample:... (4 Replies)
Discussion started by: dipeshvshah
4. Shell Programming and Scripting
We have a server that logs transactions to a file. I want to write a script that will delete the first 50 lines of the file daily without renameing the file or moving the file. (8 Replies)
Discussion started by: daveisme
5. Shell Programming and Scripting
I am not able to delete few line from long file.
I have a big file which is of 53998 B in size i want to delete lines starting from 32768 to 53998 and collect remaining file in new file.
It is giving exception
sed: command garbled: 32768,$countd
Please find the sample script... (2 Replies)
Discussion started by: rajeshorpu
6. Shell Programming and Scripting
I have a flat file which has sentence like "Notice generated". It can be anywhere in the flat file.
What I want to do is, I want to delete all the lines which are above sentence "Notice generated".
How can I do it.
Anushree (5 Replies)
Discussion started by: anushree.a
7. UNIX for Advanced & Expert Users
How I can delete 100 lines anywhere in a file without opening a file and without renaming the file. (11 Replies)
Discussion started by: Nirgude07
8. UNIX for Dummies Questions & Answers
I have a file with 65 sets of 35 coordinates, and would like to isolate these coordinates so that I can easily copy the coordinates to another file. The problem is, I've got a 9 line header before each set of coordinates (so each set is 44 lines long). There are a zillion threads out there about... (3 Replies)
Discussion started by: red baron
9. Shell Programming and Scripting
How do I delete all the lines after the line containing text ***DISCLOSURES*** . I want to delete this line too.
Thank you (2 Replies)
Discussion started by: reachsamir
10. Shell Programming and Scripting
I have a file & always I need to remove or delete last 2 lines from that file. So in a file if I have 10 lines then it should return me first 8 lines.
Can someone help me? (4 Replies)
Discussion started by: videsh77