Search Results

Search: Posts Made By: Jagadeesh Kumar
1,613
Posted By disedorgue
Hi, under linux and shell bash: $ sed -e...
Hi,
under linux and shell bash:
$ sed -e "$((`<file3.txt` -1))rfile2.txt" file1.txt
unix is best
unix is best
linux is best
unix is best
linux is best
Windows performs better
Mac OS performs...
1,613
Posted By RavinderSingh13
Hello Jagadeesh Kumar, Welcome to forums,...
Hello Jagadeesh Kumar,

Welcome to forums, please use code tags as per forum rules for your codes/Inputs/commands which you are using into your posts. Following may help you in same.

awk...
1,613
Posted By RudiC
Try also awk 'NR == 1 {LC = $0; next} FNR == LC...
Try also
awk 'NR == 1 {LC = $0; next} FNR == LC {while (0 < getline X < FI) print X} 1' file3 FI="file2" file1
unix is best
unix is best
linux is best
unix is best
linux is best
Windows...
1,613
Posted By RudiC
With a recent shell, try sed "$(($(cat...
With a recent shell, try
sed "$(($(cat file3)-1))rfile2" file1
Showing results 1 to 4 of 4

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