![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Splitting input files into multiple files through AWK command | arund_01 | Shell Programming and Scripting | 3 | 05-13-2008 10:17 AM |
| Find duplicates from multuple files with 2 diff types of files | ricky007 | Shell Programming and Scripting | 2 | 03-04-2008 01:46 PM |
| unzip particular gzip files among the normal data files | thepurple | Shell Programming and Scripting | 4 | 11-30-2007 11:17 AM |
| when I try to run rm on multiple files I have problem to delete files with space | umen | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 04:20 AM |
| text files, ASCII files, binary files and ftp transfers | Perderabo | Answers to Frequently Asked Questions | 0 | 04-08-2004 05:25 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
cat files
Hi,
I was a typical Windows guy. Like to do things just by clicking my mouse . I got a new job now...where they are big on unix. I am trying to wet my fingures now with unix. Haven't taken the dive yet. I am trying to find a solution for this problem. Please help me with some ideas. Now the problem: For ex: I have 6 files. input_1.txt input_2.txt input_3.txt input_4.txt input_5.txt input_6.txt I want to write a script to concat the files on the parameter I pass to the script. Say If I pass parameter 2 to the script. It should do this.... cat input_1.txt input_2.txt input_3.txt > input_1.txt cat input_4.txt input_5.txt input_6.txt > input_2.txt So, If I pass 3 to the script. It should do this.... cat input_1.txt input_2.txt > input_1.txt cat input_3.txt input_4.txt > input_2.txt cat input_5.txt input_6.txt > input_3.txt And the initial files I have can be dynamic....one day...I may have 20 or 30 files. Could be 25 (odd) too. The script should be dynamic enough. I hope...my problem is clear enough for you. Thanks for all your time. -Sandeep |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|