![]() |
|
|
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 |
| Content extract of a file using awk | nr_shan | Shell Programming and Scripting | 5 | 12-19-2007 05:22 AM |
| searching for content of files | Aretai | UNIX for Dummies Questions & Answers | 19 | 03-09-2007 06:44 AM |
| extract content from a file and insert to another file | fredao | Shell Programming and Scripting | 15 | 12-06-2006 07:36 PM |
| content need changes- many files | swchee | Shell Programming and Scripting | 3 | 10-05-2006 01:29 PM |
| Use of unzip with content files > 2Gb | tcarlson | Filesystems, Disks and Memory | 2 | 09-17-2003 05:33 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extract content from several txt-files
Hi!
Im trying to write a script in ksh that creates a single txt-file from specific content in several other txt-files. From these files I want to extract all text after 'WORD' and before '=', regardless of number of lines and other content. I have tried cat and guess I need ${parameter##pattern} like below (only text after WORD), but it doesnt work: FILENAME=/data/files/N01_????_B* cat ${FILENAME##*WORD} > /data/files/allfiles.txt Is it possible to do it this way or is there another way? /Lars |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|