Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: bluesmodular
1,738
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,397
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 ...
1,991
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...
1,991
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...
1,991
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

 

Featured Tech Videos

All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy