Profile

Join date: May 15, 2022

About

Norton's Star Atlas.epub graylaur





Norton's Star Atlas.epub









Norton's Star Atlas.epub


Norton's Star Atlas (First edition - 1932-44).  by A. P. Norton.ISBN 0-07-033223-X. Published by The Department of the Army Technical Manuals Section (T.M.S.) and The First Air Force Technical Manuals Section (T.M.S.) in cooperation with the Air Force Institute of Technology. Washington D.C. Star Atlas Epoch 1950 Category:1932 in scienceQ: How can I replace the text of a specific line in an external file? I have an external file that contains a list of all my files, which is very long. Each file is on its own line. I want to be able to replace the name of the file on the second line. Sample text in the external file: text1.txt text2.txt Some text here. text3.txt Some more text here. I want to be able to replace the second line, specifically the text after.txt, with a new filename. For example, I would want to change "text2.txt" to "newfile.txt". I'm using Cygwin on Windows. A: I am assuming that your external file has been made using cat To simply replace the file names on the second line, use this (assuming that you wish to replace the file name "text2.txt" with the value "newfile.txt" in the example provided): sed -i.bak '/^text2.txt$/ s/$/newfile.txt/' myexternalfile.txt (The -i.bak switch means to make an intermediate backup file; the.bak part implies that you will overwrite the original file with the new version) If you wish to replace the file name on the third line, you need to change the regex used in the sed command. The sed command shown above will leave a.bak file on disk, but it will not be visible in windows. To make a visible copy, you can use the following command (again, assuming you want to replace the file name "text2.txt" with the value "newfile.txt" in the example provided): sed -i.bak -e '/^text2.txt$/ s/$/newfile.txt/' myexternalfile.txt The difference is that you are









R N's Star Atlas Full Version Mobi Zip Torrent Ebook


be359ba680





Norton's Star Atlas.epub graylaur

More actions