Search Results

Search: Posts Made By: adrunknarwhal
17,134
Posted By Corona688
Combine them into one line of two things with...
Combine them into one line of two things with paste, shuffle them with shuf, separate them out into two files again. I've done it with awk but you could do it many ways.
$ paste -d : file1 file2 |...
2,250
Posted By Scrutinizer
To manipulate both files at the same time, try: ...
To manipulate both files at the same time, try:
awk '{getline l<f}!x[$0]++{print l>fnew;print}' f=file2.txt fnew=file2.txt.new file1.txt > file1.txt.new
Showing results 1 to 2 of 2

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