LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-13-2006, 09:19 PM   #1
groundhog_killer
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: Disabled
pipe find output to scp


Hi,

The XP box crashed and I am trying to send my mp3's over the network using scp. I have a dmraid array mounted using a gentoo livecd built to mount dmraid.

the command

find . -name "B*.mp3" -not -name "Blink*.mp3"

prints a list of all the "B" files except for "Blink"

How do I pipe that output list of just the files I want to the scp command so I can copy some and exclude others?

Thanks GH
 
Old 02-14-2006, 02:07 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Code:
scp $(find . -name "B*.mp3" -not -name "Blink*.mp3") user@host:
works for me...

Not worth saving the Blink 182 huh?
 
Old 02-14-2006, 10:46 AM   #3
groundhog_killer
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks I did not know how to format the syntax

Out of 5 gigs of mp3's I'm trying to recover from this crash I'm having trouble with Blink 182 Down.mp3 that does have me pondering the deeper darker reasons, and yes I think I'll leave them behind

Thanks again for you help with the formating

noob
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Pipe output of command to php !!! ALInux Programming 7 12-30-2006 12:36 PM
how to pipe and parse output of a command learnfast Linux - Newbie 2 06-15-2005 04:55 AM
how to pipe output from make BBB Programming 2 05-20-2005 06:14 AM
Read the output from a pipe with bash ? fluppi Linux - Software 3 01-13-2004 12:59 PM
Output truncated when using pipe tells Linux - General 1 12-16-2003 08:06 PM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration