![]() |
|
|
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 |
| Command to parse a word character by character | girish.raos | Shell Programming and Scripting | 6 | 09-03-2009 04:18 AM |
| How to delete all character before certain word | phandy | UNIX for Dummies Questions & Answers | 9 | 01-31-2009 10:14 PM |
| Delete between 10th character and 20th character | nuno_fbo | UNIX for Dummies Questions & Answers | 2 | 12-17-2008 03:08 PM |
| to search for a particular character in a word | ssuresh1999 | UNIX for Dummies Questions & Answers | 6 | 10-07-2008 03:49 PM |
| Grep for X character on a word | jjoves | UNIX for Dummies Questions & Answers | 5 | 08-06-2004 06:14 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Thank you,
In fact i'm trying to get time 15 min ago, so i'm using this command : feefth=`perl -e '($s,$m,$h,$J,$M,$A) = localtime(time - 15*60) and printf("%d%02d%02d%02d%02d\n",$A+1900,$M+1,$J,$h,$m)'` But the result is : 20091001.0155 I need it to be only : 0910010155 |
|
||||
|
In fact i tried to make my request more general to make it easy for you to help me, i give two exp : "20091001" by "091001" and "replace" by "place"
deleting the caracteres "20" from the word "20091001" to be "091001" and deleting the caracteres "re" from the word "replace" tp be "place". I found also an other solution by leaving "20" static in my script because it's not going to change very soon !!! Anyway, thanks for your help and i'm very glad to have a quick answer to my first post ![]() |
|
||||
|
Quote:
![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|