Notepad help needed easy quick question


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Notepad help needed easy quick question
# 1  
Old 04-30-2009
Notepad help needed easy quick question

TAKE A LOOK AT THE ATTACHED PICTURE.


my goal is just to SELECT n DELETE Those lines :
Dialogue: Marked=0,0:02:39.49,0:02:40.49,Default,NTP,0000,00 00,0000,!Effect,
(without the text)


take a look at that picture... the marked line...
i just need ALL of these lines removed.. i managed to select only one line as you see , its impossible to select it with the mouse:\

how can i do that? i need a script?
Notepad help needed easy quick question-untitledjpg
# 2  
Old 04-30-2009
Well, Notepad is a rather primitive text editor, and at least until Win XP, a text selection in "block mode" was not possible.

Most of the industrial-strength text editors allow block-mode text selection. In Textpad, if you press "Alt + C + B", press the mouse left button, and drag, you'll be able to select column-wise. Then press "Delete" to delete the selected data.

Textpad also allows you to search and replace using regular expressions. The regular expression for your text would be something like:

Code:
^Dialogue.*Effect,

There's a "Regular expression" checkbox that you'd have to check, so that Textpad considers your search string a regular expression.

In other text editors like EditPlus, UltraEdit, Notepad++ etc., the general idea would be the same, although the actual keystrokes to select in block-mode or replace using regexes would be different.

Finally, you can of course use a script to do the same thing. But Windows does not come with a good set of text-processing utilities or a really good shell, so doing it in a text editor should be simpler in your case.

Hope that helps,
tyler_durden

_________________________________________________________________________________________________
"And the eighth and final rule: if this is your first time at Fight Club, you have to fight."
# 3  
Old 05-01-2009
Quote:
Originally Posted by durden_tyler
Well, Notepad is a rather primitive text editor, and at least until Win XP, a text selection in "block mode" was not possible.

Most of the industrial-strength text editors allow block-mode text selection. In Textpad, if you press "Alt + C + B", press the mouse left button, and drag, you'll be able to select column-wise. Then press "Delete" to delete the selected data.

Textpad also allows you to search and replace using regular expressions. The regular expression for your text would be something like:

Code:
^Dialogue.*Effect,

There's a "Regular expression" checkbox that you'd have to check, so that Textpad considers your search string a regular expression.

In other text editors like EditPlus, UltraEdit, Notepad++ etc., the general idea would be the same, although the actual keystrokes to select in block-mode or replace using regexes would be different.

Finally, you can of course use a script to do the same thing. But Windows does not come with a good set of text-processing utilities or a really good shell, so doing it in a text editor should be simpler in your case.

Hope that helps,
tyler_durden

_________________________________________________________________________________________________
"And the eighth and final rule: if this is your first time at Fight Club, you have to fight."

DUDDDDEEE YOU ROCKK TEXTPAD IS AWESOMESmilieSmilie
# 4  
Old 05-01-2009
how do i change lang, cause if i open file in hebrew i cant see hebrew i see gibrrish
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Quick and easy way to comment out multi lined print statements

Is there a quick and easy way to comment out multi lined print statements? something like this? printf("3408 strings_line_tokens %s \n", strings_line_tokens); (6 Replies)
Discussion started by: cokedude
6 Replies

2. Shell Programming and Scripting

awk Help: quick and easy question may be: How to use &&

Hi Guru's. I am trying to use to check if $5 is greater than 80 & if not 100, then to print $0 : awk '{ if ($5>80) && if ($5 != 100) print $0} But getting error: >bdf1|sed 's/%//g'|awk '{ if ($5>80) && if ($5 != 100) print $0}' syntax error The source line is 1. The error... (6 Replies)
Discussion started by: rveri
6 Replies

3. Shell Programming and Scripting

Quick help on 'awk' needed...!!

bash-2.05$ A=`cat /etc/group |awk -F':' '{if ($1$3$4 ==... (3 Replies)
Discussion started by: ak835
3 Replies

4. Shell Programming and Scripting

Quick Favour needed

Hi there, i currently dont have access to my linux machine and need to get these script files sent to someone. Can someone please create .sh files for me with the code that i have displayed below. It would be very very helpfull. There are 3 different scripts and it would be great if someone... (3 Replies)
Discussion started by: aLderzz
3 Replies

5. UNIX for Advanced & Expert Users

Guidance needed for quick script

Hi all, I am trying to get the exception count daily from a log file which is more than 1 GB in size. I am using loops which get the count of the exception and transaction. But i need to take this exception count for a time frame from 5.00 am to 5:00 pm. I Think I can use to exact the... (4 Replies)
Discussion started by: senthilkumar_ak
4 Replies

6. Shell Programming and Scripting

Quick help needed in the Shell Script

Hiii, i have a doubt here-- I have to take backup of all the files inside directory dir(logs,tmp,corefiles) at the location $BackupLocation.i should take the backup of logs,tmp,corefiles inside the $BackupLocation directory and then remove the files and touch the files inside the directory... (1 Reply)
Discussion started by: namishtiwari
1 Replies

7. IP Networking

IP Address changes - Quick Help Needed.

We are running Solaris 9 and I have changed the IP address, Subnet Mask & Broadcast Address using ifconfig and have also changed the default gateway. How do I save these changes as I have bounced the box and it reverted back to the old IP Address settings. I am really new to UNIX and we... (4 Replies)
Discussion started by: gingerd2003
4 Replies

8. Shell Programming and Scripting

A easy question.

this is the simple question, please help me! the question is: how to send exactly 50 ICMP Echo request packets with 500 bytes of payload to 202.139.129.221? I tried to use ping -F 500 202.139.129.221, but it didn't work. Thanks! (6 Replies)
Discussion started by: kikikaka
6 Replies

9. UNIX for Dummies Questions & Answers

Easy question

Hi, Simple question. How do I convert a unix text file to a dos text file? Thanks Helen (4 Replies)
Discussion started by: Bab00shka
4 Replies
Login or Register to Ask a Question