LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2011, 03:37 PM   #1
adrian89
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
xargs problem...


Hi!
I want to insert a picture into a group of pictures (I memorized their names in a text file) resulting a new group of picture (which I also memorized their name in another text file), but I have a problem doing that.
I want to write something like that:

$> cat file1 | cat file2 | xargs composite -blend 30 text.jpg line_file1 line_file2

where
file1 is:
frame1.jpg
frame2.jpg
frame3.jpg
....

and file2 is:
new_frame1.jpg
new_frame2.jpg
new_frame3.jpg
...

Can anyone help me?
Thanks in advance!
 
Old 06-17-2011, 03:40 PM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Maybe:
Code:
$ paste file1 file2 | xargs -L 1 composite -blend 30 text.jpg
 
1 members found this post helpful.
Old 06-17-2011, 03:46 PM   #3
adrian89
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
Maybe:
Code:
$ paste file1 file2 | xargs -L 1 composite -blend 30 text.jpg
Works!
Thanks man!
 
Old 06-17-2011, 04:30 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
If the issue is solved, mark the thread as solved.
 
Old 06-17-2011, 04:50 PM   #5
adrian89
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MTK358 View Post
If the issue is solved, mark the thread as solved.
Ok, I haven't read the forum rullz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using sed with variable created using xargs - unterminated error wrankin Programming 5 11-14-2011 07:53 PM
Using xargs SBN Linux - General 2 04-07-2008 07:44 PM
`wc`, `xargs` h/w Programming 11 09-30-2007 04:22 PM
xargs yawe_frek Linux - Software 1 04-15-2007 04:26 PM
xargs and my own script harmster Linux - Software 4 05-07-2005 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration