Search Results

Search: Posts Made By: bluesmodular
3,714
Posted By bluesmodular
Replacing numbers in bash scripts
Hi,

I have lines in some files that look exactly as below, and the line numbers they occur in are always the same. (Lines 136-139)

W 0.00000000 0.00000000 2.00000000
W 0.50000000 0.50000000...
1,832
Posted By bluesmodular
Regular expression woes
(Continuation of this thread: https://www.unix.com/shell-programming-scripting/136423-sed-regular-expression-problem.html)

how would I replace a line that contains only a number, e.g. 6.00, with ...
2,657
Posted By bluesmodular
Thank you Alister! Follow-up question - By...
Thank you Alister!

Follow-up question - By similarly using printf and ed, how would I replace a line that contains only a number, e.g. 6.00, with another number stored in variable $bulksize or...
2,657
Posted By bluesmodular
SED (regular expression) problem...
Thanks -

Actually, I didn't realize this would make a difference, but I have a parent directory called [myExamples] that contains my scripts (prep) and (run_example).

I have already made...
2,657
Posted By bluesmodular
SED (regular expression) problem ---
Hello,

I would like to replace Line 187 of my file named run_example.

The original line is below, including the spaces:

celldm(1) = 6.00,
I want it to become something like

...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy