User
Pass
2FA
 
 

Script Request.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message1220
Villy

[Freakz.ro freak]



Status: Offline
(since 28-04-2015 16:31)
Joined: 06 Nov 2010
Posts: 98, Topics: 10
Location: Buzau

Reputation: 144.8
Votes: 10

   
Post Posted: 09-09-2011, 12:42:42 | Translate post to: ... (Click for more languages)

Cum as putea transforma un text file:

$A:$B:$C
$A:$B:$C
$A:$B:$C

in:

$C/$B/$A
$C/$B/$A
$C/$B/$A


Stiu ca se face cu sed dar imi cam prind urechile. Any help?

$C, $B si $A --> fiecare linie e diferita




Galford D. Weller

Battletag: Galford#2428
0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 09-09-2011, 13:57:09 | Translate post to: ... (Click for more languages)

În ce limbaj?

Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
Villy

[Freakz.ro freak]



Status: Offline
(since 28-04-2015 16:31)
Joined: 06 Nov 2010
Posts: 98, Topics: 10
Location: Buzau

Reputation: 144.8
Votes: 10

   
Post Posted: 10-09-2011, 10:22:15 | Translate post to: ... (Click for more languages)

Nevermind, am reusit singur.

Code:


awk -F: '{
  print $3, $1, $2
  }' OFS=/ infile >> outfile





Galford D. Weller

Battletag: Galford#2428
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 03-12-2024, 07:09:16
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x