Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: Disabled
pipe find output to scp


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
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: 78
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
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



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 05:39 AM.

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