10-12-2011
difference bewteen pipe, xargs, and exec
I have read several docs on these on the web and looked at examples. I can't figure out the difference. In some cases you use one or the other or you combine them.
can someone help me understand this?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have tried both the options in small dummy scripts, but somehow i can't differentiate between the two.
find . -name H* -exec ls -l {} \;
find . -name H* | xargs ls -l
Both work the ditto way.
Any help is appreciated. (19 Replies)
Discussion started by: vibhor_agarwali
19 Replies
2. Shell Programming and Scripting
Hi
I need to move multiple (say 10 files) from one location to another location. My selection would be like this...
ls -ltr *.arc | head ---> Need to move top 10 files with single command without iterating in loop. I know we can move files like this with find command but not sure if I can... (4 Replies)
Discussion started by: malaymaru
4 Replies
3. Shell Programming and Scripting
What I'm trying to do is perform a copy, well a ditto actually, on the results of a find command, but some inline string substitution needs to happen.
So if I run this code find ./ -name "*.tif" I get back these results.
.//1234567.tif
.//abcdefg.tif
Now the action from exec or xargs I... (2 Replies)
Discussion started by: myndcraft
2 Replies
4. AIX
Hi ,
Can somebody explain what is the difference in the below commands.. when using Xargs its giving all the hidden files and is it something xargs will do recursive searching or parsing ?
find . -type f -links 1 | xargs ls -li
find . -type f -links 1 | ls -li (1 Reply)
Discussion started by: Karthikeyan K
1 Replies
5. Shell Programming and Scripting
I have an overnight script which runs across a large directory to repair permissions and ownership. I also have this command output the list of files affected so that cron can email these as a log file. Previously I had the command in the form:
find /path/to/files -not -user myname -print -exec... (4 Replies)
Discussion started by: mij
4 Replies
6. UNIX for Dummies Questions & Answers
I have been using unix on and off for a number of years. I am not a sys admin. I use what I need. I have googled this, but I really can't figure out what is the difference between using xarg and just using a regular pipe? Why do I need to include xarg sometimes and how do I know when I need it? (2 Replies)
Discussion started by: guessingo
2 Replies
7. Shell Programming and Scripting
Hi All,
i'm trying to create a tar of all the .txt files i find in my dir . I've used xargs to acheive this but i wanted to do this with exec and looks like it only archives the last file it finds . can some one advice what's wrong here :
find . -type f -name "*.txt" -print0 | xargs -0... (9 Replies)
Discussion started by: Irishboy24
9 Replies
8. Shell Programming and Scripting
Hi,
What is the difference between the following commands
find . -type f -exec grep 'abc' {} \;
and
find . -type f | xargs grep 'abc'
Appreciate your help. (2 Replies)
Discussion started by: bobbygsk
2 Replies
9. Shell Programming and Scripting
xargs work great when a command gives multiple line output which can be input to another. In my case it is not working coz the second command uses two words in it.
$ scr.sh
gives output like
193740
638102
375449
..
..
another command takes these number as inputs. it works great... (1 Reply)
Discussion started by: mahesh113
1 Replies
10. Shell Programming and Scripting
Hello,
I am trying to move all the file listed by below command to /tmp/testing directory
find ./ -maxdepth 1 -type f -mtime +3
I tried using -exec and xargs - none of the combination is working?
Please, help (3 Replies)
Discussion started by: saurabh84g
3 Replies
LEARN ABOUT DEBIAN
create_bmp_for_symmetrical_stripline
create_bmp_for_symmetrical_stripline(1) General Commands Manual create_bmp_for_symmetrical_stripline(1)
NAME
create_bmp_for_symmetrical_stripline - bitmap generator for thin conductor between two infinite groundplanes (part of atlc)
SYNOPSIS
create_bmp_for_symmetrical_stripline [-v] W H w bitmapfile
WARNING
This man page is not a complete set of documentation - the complexity of the atlc project makes man pages not an ideal way to document it,
although out of completeness, man pages are produced. The best documentation that was current at the time the version was produced should
be found on your hard drive, usually at
/usr/local/share/atlc/docs/html-docs/index.html
although it might be elsewhere if your system administrator chose to install the package elsewhere. Sometimes, errors are corrected in the
documentation and placed at http://atlc.sourceforge.net/ before a new release of atlc is released. Please, if you notice a problem with
the documentation - even spelling errors and typos, please let me know.
DESCRIPTION
create_bmp_for_symmetrical_stripline is a pre-processor for atlc, the finite difference program that is used to calculate the properties of
a two-conductor electrical transmission line of arbitrary cross section. The program create_bmp_for_symmetrical_stripline is used as a fast
way of generating bitmaps (there is no need to use a graphics program), for a 1 pixel thick conductor of width w, centrally located inside
a pair of groundplanes of width W and separation H. This has an exact analytical answer, when the inner is infinitely thin and the width W
is infinitely wide. This theoretical impedance is also calculated by the create_bmp_for_symmetrical_stripline. It is therefore used as a
test of atlc.
----------------------------------------------------- ^
| | |
| | |
| <----------w-----------> | |
| | H
| | |
| | |
----------------------------------------------------- v
<-------------------------W------------------------->
The parameters 'W' and 'H' and the inner dimensions of the outer conductor. The outer dimensions of the inner conductor are 'w' and 'c'.
The inner conductor is assumed to rest on a dielectric (Er2) which is 'd' wide and outer conductor an the inner conductor is offset 'b'
from the left hand sidewall of the outer conductor. The whole region is surrounded by a dielectric of relative permittivity 'Er1'. The
dielectrics 'Er1' and then 'Er1' and 'Er2' will both be 1.0
The bitmaps produced by create_bmp_for_symmetrical_stripline are 24-bit bit colour bitmaps, as are required by atlc. Currently cre-
ate_bmp_for_symmetrical_stripline only produces bitmaps with white (vacuum) dielectrics.
OPTIONS
-v
Print the theoeretical impedance Zo. This only works if the width W is sufficiently wide, otherwise atlc and the value printed here would
disagree wildly.
SEE ALSO
atlc(1) create_bmp_for_circ_in_circ(1) create_bmp_for_circ_in_rect(1) create_bmp_for_microstrip_coupler(1) cre-
ate_bmp_for_rect_cen_in_rect(1) create_bmp_for_rect_cen_in_rect_coupler(1) create_bmp_for_rect_in_circ(1) create_bmp_for_rect_in_rect(1)
create_bmp_for_stripline_coupler(1) design_coupler(1) find_optimal_dimensions_for_microstrip_coupler(1) readbin(1)
http://atlc.sourceforge.net - Home page
http://sourceforge.net/projects/atlc - Download area
atlc-X.Y.Z/docs/html-docs/index.html - HTML docs
atlc-X.Y.Z/docs/qex-december-1996/atlc.pdf - theory paper
atlc-X.Y.Z/examples - examples
Dr. David Kirkby atlc-4.6.0 8th December 2003 create_bmp_for_symmetrical_stripline(1)