Sponsored Content
Full Discussion: piping problem with xargs
Top Forums Shell Programming and Scripting piping problem with xargs Post 302545755 by ivpz on Tuesday 9th of August 2011 11:30:52 AM
Old 08-09-2011
Hi Tange,

Thanks for the clarification. I've been "playing" around with it the last few days and just glad to see the improved speed.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

problem with exit code when piping

i am writing a script to perform some mysqldumps and gzip them. The problem I am running into is that if the user specifies a database that doesn't exist, the error the mysql engine produces is still piped into gzip, and the exit code returned is 0. If I don't pipe into gzip, an exit code... (4 Replies)
Discussion started by: bitoffish
4 Replies

2. UNIX for Dummies Questions & Answers

use of xargs and prune piping with find command.

Can anyone interpret and tell me the way the below command works? find * -name "*${msgType}" -mtime +${archiveDays} -prune -type f -print 2>/dev/null | xargs rm -f 2> /dev/null Please tell me the usage of prune and xargs in the above command? Looking forward your reply. Thanks in... (1 Reply)
Discussion started by: venkatesht
1 Replies

3. Shell Programming and Scripting

xargs problem

Hi From the xargs man page (Solaris): ls $1 | xargs -I {} -t mv $1/{} $2/{} This would move all the files in directory $1 to directory $2 Problem 1: In a shell script if I want to move files in d1 to d2 dir1=~/d1 dir2=~/d2 ls $dir1 | xargs -I {} -t mv $dir1/{} $dir2/{} does not... (3 Replies)
Discussion started by: encrypted
3 Replies

4. Solaris

Piping results of 'ls' to 'find' using 'xargs'

I'm trying to get a count of all the files in a series of directories on a per directory basis. Directory structure is like (but with many more files): /dir1/subdir1/file1.txt /dir1/subdir1/file2.txt /dir1/subdir2/file1.txt /dir1/subdir2/file2.txt /dir2/subdir1/file1.txt... (4 Replies)
Discussion started by: MartynAbbott
4 Replies

5. Shell Programming and Scripting

xargs command problem

Hi I am trying to use "xargs" command to loop through each file, modify it and overwrite the old file with the modification but with the same file name. I thought it is easy but I just can't get it to work I tried the following I thought {} would give me the current file name, but it... (1 Reply)
Discussion started by: tiger66
1 Replies

6. UNIX for Dummies Questions & Answers

[SOLVED] Piping Problem

Hey, I want to create a new file (devices) with the 39th and the 40th character of the line wich is in the array line and in the file drivers. But unfortunately my try doesn't work: sed -n '$linep' drivers | cut -c 39-40 | echo >>devices Perhaps one of you can help me. Thank you! emoly ... (0 Replies)
Discussion started by: emoly
0 Replies

7. Homework & Coursework Questions

Unix Piping Problem

Hey guys. I'm very new to Unix. I'm pretty fluent in Java and C, but I have never actually used Unix for anything. I am in an Operating Systems course now and I have an assignment to write a piece of code that involves forks and piping. I'm stuck. 1. The problem statement, all variables and... (6 Replies)
Discussion started by: itsjimmy91
6 Replies

8. Shell Programming and Scripting

Problem using xargs with rm

I am trying to call xargs, however rm is complaining find . -maxdepth 1 -name "*tests*" -print0 | xargs -0 rm rm: missing operand Try `rm --help' for more information. (3 Replies)
Discussion started by: kristinu
3 Replies

9. Shell Programming and Scripting

Problem with xargs

I entered the following <zzz.list xargs showtell |more which does a echo "<<<<<<<<<<<<<<<<<<<<<<<<< $1 >>>>>>>>>>>>>>>>>>" head -20 $1 The file zzz.list contains 525 lines representing user scripts (1 per line), but only the first, 181st, and 399th lines were processed. What am I missing? TIA (2 Replies)
Discussion started by: wbport
2 Replies

10. UNIX for Beginners Questions & Answers

Piping commands using xargs

Need help in piping commands using xargs I have several .tar.gz files that I need to list the folder content in a subdirectory. For example, a.tar.gz b.tar.gz c.tar.gz The following command works great for each .tar.gz file but it's a pain to run the tar command for each file. tar -tf... (11 Replies)
Discussion started by: april
11 Replies
BPLAY(1)						      General Commands Manual							  BPLAY(1)

NAME
bplay, brec - buffered sound recording/playing SYNOPSIS
bplay [-d device] [-B buffersize] [-S] [-s speed] [-b bits] [[-t secs] | [-T samples]] [[-j secs] | [-J samples]] [-D level] [file] brec [-d device] [-B buffersize] [-S] [-s speed] [-b bits] [[-t secs] | [-T samples]] [-r|-v|-w] [-D level] [file] DESCRIPTION
bplay copies data from the named sound file (or the standard input if no filename is given) to the audio device. brec copies data from the audio device to the named sound file (or the standard output if no filename is present). These programs are intended to be drop-in replacements for the vplay and vrec programs by Michael Beck (beck@informatik.hu-berlin.de). OPTIONS -B buffersize Use the supplied audio buffer size instead of the default. -d device Use the supplied audio device instead of the default. -S Sound file is stereo. -s speed The speed in samples per second. -b bits The number of bits per sample. Only 8 and 16 are currently supported. -t secs The number of seconds to be played or recorded. -T samples The number of samples to be played or recorded. -j secs When playing, the number of seconds to skip at the beginning of the input before playing. -J samples When playing, the number of samples to skip at the beginning of the input before playing. -r When recording, write raw sound file. -v When recording, write Creative Labs VOC sound file. -w When recording write Microsoft Wave sound file. Note that the WAVE file format is limited to 4GiB filesize. Recording more data is possible, but the length info won't be consistent. -q Quiet mode. No messages are displayed. -D level Print debug information to stderr. Debug level ranges from 0 to 2, where 0 is no debug information. FILES
/dev/dsp The audio device. BUGS
The -t, -T, -j and -J options may do strange things when playing VOC files. There are limitations on recording VOC format files - specifically VOC files are only recorded in the 1.20 version of the format, which some player programs may choke on. There is also currently a limit of around 16M on the size of a VOC file which will be recorded. This is probably not a problem since I don't think anybody really uses VOC files anymore. This program prefers to run setuid root. This is because it wants to use setpriority() to run at the highest possible priority, and also locks down the buffers it uses to avoid them being swapped out. AUTHOR
David Monro (davidm@amberdata.demon.co.uk or davidm@cs.usyd.edu.au) The option parsing code was originally taken from vplay to maintain compatibility. 20 September 1999 BPLAY(1)
All times are GMT -4. The time now is 05:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy