unix command!!!!
2 posters
unix command!!!!
can anyone tell what command is used to combine the contents of two files into another file??????
Abhiramy- Posts : 9
Points : 21
Join date : 2010-02-26
Re: unix command!!!!
i myself found out!!!!!
awk '{getline x<f;print x;getline x<f;print x;print;getline;print}' f=file1 file2
awk '{getline x<f;print x;getline x<f;print x;print;getline;print}' f=file1 file2
Abhiramy- Posts : 9
Points : 21
Join date : 2010-02-26
Re: unix command!!!!
simple way to do this.
cat sample1.txt sample2.txt> sample3.txt
contents of files "sample1.txt" and "sample2.txt" will be copied to "sample3.txt"
cat sample1.txt sample2.txt> sample3.txt
contents of files "sample1.txt" and "sample2.txt" will be copied to "sample3.txt"
Permissions in this forum:
You cannot reply to topics in this forum
|
|