Skip to main content

Posts

Showing posts with the label GIMP

Linux search string in text files

Search a string or a pattern in text files without opening the file.

Grep is a handy tool to find or search a string in text files.

Grep is an available tool in Linux and Unix OSes.

So if you have some data or information stored in text files and forget where the file is located.

As long as you know the keyword or a string to search for, then grep and find command will be your utmost friend.

"Grep" and "find" are tools to make life easier to get the information you want but how to use it?

Command below will search recursively in the patch specified for all the text files and display the file where the match is found, output will also include the path and the filename.

find /home/00_Notes -name '*.txt' -print0 | xargs -0r grep -H 'vanity baseline'



The xargs -0r,  is zero r.

The above command will search recursively in all folders and subfolders for text files which contains the string "vanity baseline".

If a match is found an output will be…

GIMP start a new path or selection

Start a new path when creating lines in GIMP.
How to create lines in GIMP?
Select the pencil tool from the toolbox, make sure the foreground color is not the same with the background color or else the line will be invisible.
If you need to specify a brush select the "brush" that you want to use to create the line.
Press and hold the "shift key" then select or click the start point.
Click the second point (while still holding the shift key) and a line will be drawn. Release the "shift key".
If you want to draw again a new line, press "shift key" but you will notice that the line will be connected to the last point that the line was drawn.
This will happen if you didn't "double click" on the last point that the line was drawn.
Even if you press "esc" key it will still continue from the old point or the new line is still connected to the end of the line that was previously drawn. Or if you’re doing a selection the new area…