|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
How to insert a column to a text file in csh?
I have a cron job to open a text file and insert a VARIABLE (dynamic).
Example: OrigFile: A 1 B 2 C 3 D 4 041110 UpdateFile: A 1 B 2 C 3 D 4 Date: 041110 Since it's a cron job, so the script is written in csh. Thanks in advance. Thanh |
|
#2
|
|||
|
|||
|
>>>>Since it's a cron job, so the script is written in csh.
who said that s.*y ? cron never will use csh ! the worst you can do in scriping is: use csh. when you need (sure) portability use bourne. y Q: sed 's/\(.*\) \(.*\)/\1 date: \2/' infile >outfile will do the job. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How to insert a column to a text file in csh? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|