![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| whole word substitution in SED | gikay01 | Shell Programming and Scripting | 7 | 07-16-2008 01:51 PM |
| Last word substitution | capri_drm | Linux | 4 | 06-10-2008 03:19 AM |
| word substitution in unix | capri_drm | Linux | 6 | 05-14-2008 11:36 AM |
| How to use sed substitution using a $variable for a line containing a word | Sangal-Arun | Shell Programming and Scripting | 4 | 08-07-2007 04:09 PM |
| Can a shell script pull the first word (or nth word) off each line of a text file? | tricky | Shell Programming and Scripting | 5 | 08-17-2006 03:29 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
word substitution in csh
I have data that looks something like this:
term1/term2/2005-12-01 13:20:30/term4 I need to make it look like this: term1/term2/20051201132030/term4 I am using a csh script. I have tried to do it by first converting the date/time to the format in which I want it, and then replacing it using a tr command to replace the old date/time to the new one, but tr doesn't like strings of different lengths. Is there some other command I can use, or just an easier way of doing this altogether? Thanks in advance... |
| Forum Sponsor | ||
|
|