![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| counting a list of string in a list of txt files | Pep Puigvert | UNIX for Dummies Questions & Answers | 4 | 08-15-2008 04:55 PM |
| Best way to list a directory's contents? | bbilheimer | UNIX for Dummies Questions & Answers | 6 | 02-05-2008 10:05 AM |
| Comparing contents of files | rrs | Shell Programming and Scripting | 3 | 04-03-2007 09:08 PM |
| list contents of directory | carl_vieyra | UNIX for Dummies Questions & Answers | 3 | 01-30-2007 03:24 PM |
| Message trying to list contents of directory | sallender | UNIX for Dummies Questions & Answers | 1 | 10-19-2005 09:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a group of getOSinfo.out files that I would like to list the filename and then its contents out to. I can do it for each one individually, but would prefer to do it all in one shot and have one large file that has all of the oslevels and filenames. I am not very handy with scripts, so I was wondering if anyone had a script that did this already. It is on AIX so ksh is prefered, but I can probably tweak most things to work. I would like the output to look something like this:
Filename.out content line 1 content line 2 You get the idea, I am still in my scripting infancy so please bare with me. Thanks for any help with this. BTW this is what I was using, I know I will need a much more robust set of commands than this. ls *.GetOSInfo.out > OSInfo.out | cat *.GetOSInfo.out >> OSInfo.out |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|