Daily Learning - Day 40
Date: 13th May 2017
Topic: Notepad++ - Day 01
Follow Hashtag: #SKC100DaysofLearning
A New thing i experimented on 11th May, at work with help of stack overflow.
==== More Details...
There was a new thing, learnt that from Server Logs - we can get to know if any exceptions or errors tracked while performing any action.
So took help and downloaded the server log.
- Download the Server Log
- Open the server log in Notepad++
- If you see any exceptions - CTRL+F: Find for "Exception" in current document
- You may get (7 hits)
- Copy the hits to another file.
- Remove till FileNotFoundException: DOCUMENTS/
- Then you will see only PDF Names
Sheet2.pdf
Sheet3.pdf
Sheet4.pdf
Sheet5.pdf
Sheet6.pdf
Sheet7.pdf
Next, If you have a database access / you can work with dev team where you can query against the table to find the documents to which they are assigned.
But, if there are 100 documents. It is really hard to make 100 documents to make a Query.
Thus, Stackoverflow helped in this context.
Original Post: http://stackoverflow.com/questions/8849357/add-quotation-at-the-start-and-end-of-each-line-in-notepad
You won't be able to do it in a single replacement; you'll have to perform a few steps. Here's how I'd do it:
- Find (in regular expression mode):
(.+)
Replace with:'\1'
This adds the quotes:'Sheet1.pdf'
'Sheet2.pdf' 'Sheet3.pdf' 'Sheet4.pdf' 'Sheet5.pdf' 'Sheet6.pdf' 'Sheet7.pdf'
- Find (in extended mode):
\r\n
Replace with (with a space after the comma, not shown):,
This converts the lines into a comma-separated list: 'Sheet1.pdf',
'Sheet2.pdf', 'Sheet3.pdf', 'Sheet4.pdf', 'Sheet5.pdf', 'Sheet6.pdf', 'Sheet7.pdf'Adding braces manually for both ends and Doing a query can give you the results to which documents are assigned.
('Sheet1.pdf',
'Sheet2.pdf', 'Sheet3.pdf', 'Sheet4.pdf', 'Sheet5.pdf', 'Sheet6.pdf', 'Sheet7.pdf')