![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Append text at end of the first line in a file | catgovind | Shell Programming and Scripting | 7 | 05-01-2008 07:33 AM |
| using sed to append text to the end of each line | Redg | UNIX for Dummies Questions & Answers | 8 | 07-26-2006 10:59 AM |
| Text Append | 801238429 | Shell Programming and Scripting | 5 | 04-05-2005 12:59 PM |
| Append a field to the end of each line of a file based on searching another file. | ultimate | Shell Programming and Scripting | 2 | 03-29-2005 10:21 AM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 02:50 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to use sed to append text into a file
I have a command stream that will parse down an ftp DIR listing of a remote directory and return the name of the newest file that I am interested in. The command is
sed -e '/^d/d' sppay.listing |sed -n -e '/SPPAY/p'|sort -r -k 43M,45 -k 47,48 -k 50,54|sed -n -e '1p'|cut -c 56-99 and what it would return (for example) is SPPAY0228071250.csv.pgp I want to generate an ftp command file to grab the file that I am interested in. The form of the command file follows. user username password binary get SPPAY0228071250.csv.pgp $ORACLE_HOME/datafiles/SPPAY.csv.pgp bye I haven't been able to figure out how to generate the file. I would like to use sed, but anything that will make the file and can use standard input/output would be appreciated. Thanks Last edited by beilstwh; 03-06-2007 at 04:29 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|