•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,552 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,472 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 855 | Replies: 1
![]() |
Hi everybody:
I have a problem
, I would like to paste different files which has this pattern name:
namefile_number.dat
like this:
namefile_1.dat namefile_2.dat ....
And I have tried to use paste command, for create a name_final.dat. But such I have done:
It works but I would like that paste command do it in order
. Then I have done:
And paste it but all in one column, like this:
My question is. Is there any solution for from different files where each file is named like namefile_number.dat paste all in one but each time that paste act it do it in columns. Like this:
.
Oh I forget it, there are some numbers that do not exist.
Thanks in advance
I have a problem
, I would like to paste different files which has this pattern name:namefile_number.dat
like this:
namefile_1.dat namefile_2.dat ....
And I have tried to use paste command, for create a name_final.dat. But such I have done:
paste namefile_*.dat > name_final.dat
It works but I would like that paste command do it in order
. Then I have done:for i in namefile*.dat
do
paste $i >> namefinal.dat
doneAnd paste it but all in one column, like this:
namefile_1.dat namefile_2.dat namefile_3.dat ..... namefile_number.dat
My question is. Is there any solution for from different files where each file is named like namefile_number.dat paste all in one but each time that paste act it do it in columns. Like this:
namefile_1.dat namefile_2.dat ...... namefile_number.dat
Oh I forget it, there are some numbers that do not exist.
Thanks in advance
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Can't Copy & Paste, or drag & drop in Windows (Windows 9x / Me)
- Temporary internet files - Safari equivalent? (OS X)
- Transfering files (Storage)
- cant access back up files (Windows NT / 2000 / XP / 2003)
- mysql tutorials (Database Design)
- Sorting in date order (Visual Basic 4 / 5 / 6)
- help! trying to share files on home network (Networking Hardware Configuration)
- code to use all .htm files in a directory (C)
- Conserving resources and scrolling in files (C)
- Explorer has caused a error (Viruses, Spyware and other Nasties)
Other Threads in the Shell Scripting Forum
- Previous Thread: How I can write shell script for Sending Email
- Next Thread: Not sure if this is the right place...need windows script that will delete directorys


Linear Mode