Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Apps] Fare un Merge di due File...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
_sys/sid
Guru
Guru


Joined: 27 Aug 2004
Posts: 346
Location: Asola (Mantova)

PostPosted: Sat Oct 02, 2004 1:36 pm    Post subject: [Apps] Fare un Merge di due File... Reply with quote

Esiste qualche programma che fa' un merge di due file...
Es. Ho file 1 con scritto:
Code:

(Menu)
    primo
(End)

e un file due con:
Code:

(Menu)
    secondo
(End)


esiste un programma che dati in input i due file mi ritorni un terzo file con scritto:
Code:

(Menu)
    primo
    secondo
(End)

o devo farmelo io ???

Grazie. :oops:
_________________
http://th30z.netsons.org/
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Oct 02, 2004 1:52 pm    Post subject: Re: [Apps] Fare un Merge di due File... Reply with quote

_sys/sid wrote:
Esiste qualche programma che fa' un merge di due file...
Es. Ho file 1 con scritto:
Code:

(Menu)
    primo
(End)

e un file due con:
Code:

(Menu)
    secondo
(End)


esiste un programma che dati in input i due file mi ritorni un terzo file con scritto:
Code:

(Menu)
    primo
    secondo
(End)

o devo farmelo io ???

Grazie. :oops:


Penso che dovresti fartelo tu. Ma non mi pare una cosa complessa.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Sat Oct 02, 2004 1:56 pm    Post subject: Reply with quote

Secondo me con diff riesci a farlo. Devi solo trovare l'opzione giusta (penso)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sat Oct 02, 2004 2:13 pm    Post subject: Reply with quote

Code:
man merge

l'hai già visto? Se non ho capito male potrebbe fare al caso tuo.
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Sat Oct 02, 2004 3:31 pm    Post subject: Reply with quote

shev wrote:
l'hai già visto? Se non ho capito male potrebbe fare al caso tuo.

in che pacchetto si trova? Io non l'ho
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Oct 02, 2004 3:40 pm    Post subject: Reply with quote

fedeliallalinea wrote:
shev wrote:
l'hai già visto? Se non ho capito male potrebbe fare al caso tuo.

in che pacchetto si trova? Io non l'ho


Siamo in due. :wink:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
_sys/sid
Guru
Guru


Joined: 27 Aug 2004
Posts: 346
Location: Asola (Mantova)

PostPosted: Sat Oct 02, 2004 4:02 pm    Post subject: Reply with quote

Trovato:
Code:
emerge -pv rcs

*  app-text/rcs
      Latest version available: 5.7-r2
      Latest version installed: [ Not Installed ]
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.gnu.org/software/rcs/
      Description: Revision Control System


adesso lo provo...
_________________
http://th30z.netsons.org/
Back to top
View user's profile Send private message
_sys/sid
Guru
Guru


Joined: 27 Aug 2004
Posts: 346
Location: Asola (Mantova)

PostPosted: Sat Oct 02, 2004 4:11 pm    Post subject: Reply with quote

qualcuno ha capito come si usa ??
_________________
http://th30z.netsons.org/
Back to top
View user's profile Send private message
sanchan
Retired Dev
Retired Dev


Joined: 09 May 2004
Posts: 74

PostPosted: Sat Oct 02, 2004 5:37 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Secondo me con diff riesci a farlo. Devi solo trovare l'opzione giusta (penso)


con diff no. con diff3 di sicuro.
man diff3.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Oct 03, 2004 1:11 pm    Post subject: Re: [Apps] Fare un Merge di due File... Reply with quote

IMHO secondo me la cosa non é banalissima ed é meglio fare a mano.

Nell'esempio da te citato il risultato potrebbe essere:

Code:

(Menu)
    primo
    secondo
(End)


ma anche:

Code:

(Menu)
    secondo
    primo
(End)


come si fa a stabilire quale riga va prima?
_________________
Ciao da me!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Sun Oct 03, 2004 1:49 pm    Post subject: Reply with quote

@randomaze: dal file che metti prima, no?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Oct 03, 2004 5:12 pm    Post subject: Reply with quote

fedeliallalinea wrote:
@randomaze: dal file che metti prima, no?


Puó essere un modo, resto dell'idea che il merge sia una cosa troppo complicata per farla in modo automatico
_________________
Ciao da me!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum