Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all,
thanx in advance for trying to help me.
my problem is that i cant direct my output to i file.
i think it has to do with the space in my directory/filenames
the output i get on the screen(green) is what i want in the test.txt file
again thx for all help
Bert
sudo find '/home/bert/Music/The Offspring' -iregex ".*\.\(mp3\|ogg\|flac\|ape\)" -exec /home/bert/Documents/bmpcount/usr/lib64/bpmdj/bpmcount {} + | grep "bert" > test.txt
105,469 /home/bert/Music/The Offspring/13 - Keep Them Separated.mp3
91,4685 /home/bert/Music/The Offspring/14 - No Brakes.mp3
113,582 /home/bert/Music/The Offspring/04 - Walla Walla.mp3
107,666 /home/bert/Music/The Offspring/10 - Why Donīt You Get a Job.mp3
105,469 /home/bert/Music/The Offspring/02 - The Kids Arenīt Alright.mp3
103,359 /home/bert/Music/The Offspring/09 - Original Prankster.mp3
90,6661 /home/bert/Music/The Offspring/06 - The Meaning of Life.mp3
139,675 /home/bert/Music/The Offspring/16 - Change the World.mp3
105,469 /home/bert/Music/The Offspring/03 - Sheīs Got Issues.mp3
114,844 /home/bert/Music/The Offspring/07 - Staring at the Sun.mp3
101,333 /home/bert/Music/The Offspring/05 - Want You Bad.mp3
94,8251 /home/bert/Music/The Offspring/01 - Americana.mp3
96,5975 /home/bert/Music/The Offspring/11 - Gone Away.mp3
94,8251 /home/bert/Music/The Offspring/15 - Million Miles Away.mp3
118,804 /home/bert/Music/The Offspring/08 - Self Esteem.mp3
95,7031 /home/bert/Music/The Offspring/12 - Pretty Fly (For a White Guy).mp3
when i execute the command (blue)
i get the green text on the screen.
what i want is the green text in a file ( here test.txt) ( so redirect green in the test.txt file)
If redirecting stderr does not work (2>, 2>&1, etc.) you might check bpmcount to see if it is doing something screwy like writing to /dev/console or some such place.
sorry for the late reply
@astrogeek
sudo find '/home/bert/Music/The Offspring' -iregex ".*\.\(mp3\|ogg\|flac\|ape\)" -exec /home/bert/Documents/bmpcount
/usr/lib64/bpmdj/bpmcount {} + | grep "bert" 2> test.txt
does not work no text in test.txt
@firerat
You are right about the grep the 2 lines of code produces the same test.txt(oragne color).
but not exactly what i want
as you can see there are lines with th progress thats why i used the grep for "filtering" the lines that does contains a directory with my name"bert"
105,469 /home/bert/Music/The Offspring/13 - Keep Them Separated.mp3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.