Showing posts with label sed command. Show all posts
Showing posts with label sed command. Show all posts
Thursday, December 17, 2015
To get the lines between the two pattern in a file in BOSS Linux
To get the lines between the two pattern in a file.txt use the following sed command format
sed -n "/pattern1/,/pattern2/p" file.txt
Wednesday, November 18, 2015
Edit a file directly using "sed" command in Linux
sed is stream editor, but can edit files directlysed -i -e 's/foo/bar/g' hello.txt
s is used to replace the found expression "foo" with "bar" and g used toreplace any found matches.
-i option is used to edit in place on hello.txt.-e option indicates a command to run.
Subscribe to:
Posts (Atom)
How to interact with the non-interactable Web Elements in Selenium
How to interact with the non-interact able Web Elements in Selenium // Find the non-interactable element element WebElement element = dr...
-
This process will common for all HP Printers like HP LJ P 1007, P1020,P1020 plus,1022,3050 MFP, M 5035 MFP,P 2015N and Configuring the HP ...
-
.Open the System -> Printing -> add 2.Then Select the Printer Connected to Parallel Port or Detected Printer name is TVS MSP 455XL...
-
Step:1 sudo apt-get install python-pip Step:2 pip install -U selenium for python3 and more install Step:1 sudo apt-get...