Topics | Search Log Out | Register | Edit Profile
Hide Clipart | Banned/Unbanned User Log | Moderator Login History | Thread Delete/Move Log | Last 30 mins | 1 | 2
Calling unix scrptin experts

Chalanachithram.com DB » New TF Industry Related » Archive through November 08, 2016 » Calling unix scrptin experts « Previous Next »
Author Message
 

156
Junior Artist
Username: 156

Post Number: 444
Registered: 09-2008
Posted From: 217.156.135.5

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 09:26 am:       


Platypus:




If I am not wrong, you are from UK or recently to moved to UK right?
 

Twotown
Junior Artist
Username: Twotown

Post Number: 623
Registered: 09-2016
Posted From: 207.244.66.70

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 09:04 am:       


Platypus:

date -d `echo "subba_rao_sachina_time_20161007_101010.txt" | tr -dc '0-9' | cut -c1-8` +%Y/%d/%m


 

Chiru_fan
Megastar
Username: Chiru_fan

Post Number: 25702
Registered: 04-2008
Posted From: 71.179.11.160

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 08:46 am:       


Gandhiguevara:



GaGu....hole warald loo vunna yee tech vadalavaa?
CHIRU - SACHIN - FEDERER
 

156
Junior Artist
Username: 156

Post Number: 443
Registered: 09-2008
Posted From: 217.156.135.5

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 08:36 am:       


Platypus:

date -d `echo "subba_rao_sachina_time_20161007_101010.txt" | tr -dc '0-9' | cut -c1-8` +%Y/%d/%m




Nice and simple :-)
 

Platypus
Side Hero
Username: Platypus

Post Number: 4875
Registered: 01-2008
Posted From: 88.151.157.59

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 08:34 am:       


Maverick:

echo "subba_rao_sachina_time_20161007_101010.txt" | tr -dc '0-9' | cut -c1-8




date -d `echo "subba_rao_sachina_time_20161007_101010.txt" | tr -dc '0-9' | cut -c1-8` +%Y/%d/%m
 

Maverick
Legend
Username: Maverick

Post Number: 62336
Registered: 01-2008
Posted From: 108.171.129.189

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 08:30 am:       

echo "subba_rao_sachina_time_20161007_101010.txt" | tr -dc '0-9' | cut -c1-8

format chesuko
Happy Vizag
 

Sannayi_nokkulu
Hero
Username: Sannayi_nokkulu

Post Number: 11548
Registered: 06-2014
Posted From: 166.137.240.110

Rating: 
Votes: 9 (Vote!)

Posted on Monday, November 07, 2016 - 05:58 am:       

malla shuruu AAA...
sachipotava , avineethi ga batukutava okkate option ante alochinchakunda chachipotaa ane type cbn - OT
 

156
Junior Artist
Username: 156

Post Number: 442
Registered: 09-2008
Posted From: 217.156.135.5

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 05:11 am:       

I am not expert in shell scripting and based on exploring some examples, I came up with this....

$ echo subba_rao_sachi_batikina_time_20161204_101010_29329405505.tx t | tr '\n' ' ' | sed -e 's/[^0-9]/ /g' -e 's/^ *//g' -e 's/ *$//g' | tr -s ' ' | awk '{print $1}' | tr '\n' ' ' | awk '{print substr($0,0,8)}' | awk '
> BEGIN {OFS="/"}
> {print substr($1,5,2), substr($1,7,2), substr($1,1,4)}'
12/04/2016


$ echo subba_rao_sachi_batikina_time_20161204_101010.txt | tr '\n' ' ' | sed -e 's/[^0-9]/ /g' -e 's/^ *//g' -e 's/ *$//g' | tr -s ' ' | awk '{print $1}' | tr '\n' ' ' | awk '{print substr($0,0,8)}' | awk ' BEGIN {OFS="/"}
{print substr($1,5,2), substr($1,7,2), substr($1,1,4)}'
12/04/2016


$ echo subba_rao_sachi_batikina_time_20171023_101010.txt | tr '\n' ' ' | sed -e 's/[^0-9]/ /g' -e 's/^ *//g' -e 's/ *$//g' | tr -s ' ' | awk '{print $1}' | tr '\n' ' ' | awk '{print substr($0,0,8)}' | awk '
BEGIN {OFS="/"}
{print substr($1,5,2), substr($1,7,2), substr($1,1,4)}'
10/23/2017
 

Gandhiguevara
Legend
Username: Gandhiguevara

Post Number: 62003
Registered: 10-2009
Posted From: 67.191.221.7

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, November 07, 2016 - 01:33 am:       

naa daggara oka string vundhi "subba_rao_sachina_time_20161007_101010.txt"

daanlo 20161007 extract chesi mm/dd/yyyy format lo pettadam elaa...unix script lo

aaa date mundu yenni _ lu ainaa vundochu...but first numeric substring ni extract cheyyali

"subba_rao_sachi_batikina_time_20161007_101010.txt"

Output: 10/07/2016

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x9d48468){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

  A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: