![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed string manipulation | speedieB | Shell Programming and Scripting | 4 | 11-23-2008 08:27 PM |
| string manipulation | james6 | UNIX for Dummies Questions & Answers | 5 | 06-03-2008 11:05 AM |
| string manipulation | Cactus Jack | Shell Programming and Scripting | 9 | 02-14-2008 01:14 PM |
| string manipulation | hai1973 | Shell Programming and Scripting | 13 | 08-20-2007 12:27 PM |
| awk string manipulation | zoo591 | Shell Programming and Scripting | 2 | 08-09-2006 01:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
String manipulation
Hi all, Please help me decide this problem. I have a converter application getting its parameters by specified format. Ie: -date2007-02-14 Also I have a files named yyyyMMdd.rar format. So how do I convert the file name to it. Input: 20070214.rar Output: -date2007-02-14 I wrote the following scripts but can't know how to concat them. Code:
string=20070214.rar echo $string | cut -c1-4 echo $string | cut -c5-6 echo $string | cut -c7-8 Thank you |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|