Search Results

Search: Posts Made By: hamnsan
6,350
Posted By elixir_sinari
Assuming that mesh.k contains only 1 number: ...
Assuming that mesh.k contains only 1 number:

awk 'NR==FNR{num=$1;next} /[0-9]{1,}\.k$/ {sub("[0-9]{1,}\.k$",num".k")} {print}' mesh.k input.k
6,350
Posted By clx
Please post the required data from "mesh.k" and ...
Please post the required data from "mesh.k" and "input.k".
Also, please edit your post and use code tags. (hurry up, our mods here, are too fast :) )
10,337
Posted By CarloM
Frankly I still don't understand exactly what...
Frankly I still don't understand exactly what you're trying to do, but if you only want to do the substitution once you could have:

awk 'BEGIN{getline line <"fric.txt"} /mue/{if (done_already)...
93,028
Posted By Neo
User Guide: Posting in the Emergency Forum
Emergency UNIX and Linux Support !! Help Me! Forum (Request Urgent Help) (https://www.unix.com/emergency-unix-linux-support-help-me/)

README FIRST: How to Request Emergency or Urgent Help:


...
1,263
Posted By rbatte1
Well, it's very clunky, but you could try:- ...
Well, it's very clunky, but you could try:-
echo "31Gddk:r !head -1 file2\n:wq"|vi file1
echo "97Gddk:r !head -1 file2\n:wq"|vi file1

Does that do it? I feel a proper sed or awk would be better...
Showing results 1 to 5 of 5

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