09-01-2009
Hi jlliarge. I cited Sunos 4.1.1 based on a comment I made in an old script, though I no longer have a copy of the O/S. This is not the only time I have come across the problem.
The wikipedia section on "find" mentions "In some shells, the {} must be quoted". I can't argue with that.
find - Wikipedia, the free encyclopedia
The wiki looks pretty accurate bar not mentioning differences between "/pathname" and "/pathname/" in some unixes.
In this comprehensive GNU-based generic man page for find(1) it specifically states to quote '{}' . It also warns about security hole in the POSIX implementation of "find ... -exec" which I did not know about.
http://unixhelp.ed.ac.uk/CGI/man-cgi?find
This independent researcher has gone to town on checking what works in various versions of find. See under "Embedded {}". He describes some quite radical different behaviours of {} which does support my case.
http://www.in-ulm.de/~mascheck/various/find/
Last edited by methyl; 09-01-2009 at 09:06 AM..
Reason: Further example of examples
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have installed solaris 10 on an intel machine. Logged in as root. In CDE, i open terminal session, type login alex (normal user account) and password and i get this message
No utpmx entry: you must exec "login" from lowest level "shell" :confused:
What i want is: open various... (0 Replies)
Discussion started by: peterpan
0 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
6. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
7. Shell Programming and Scripting
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT DEBIAN
pod2wiki
POD2WIKI(1p) User Contributed Perl Documentation POD2WIKI(1p)
NAME
pod2wiki - A utility to convert Pod documents to Wiki format.
SYNOPSIS
pod2wiki [--style --noerrata --help --man] podfile [outfile]
Options:
--style wiki style (defaults to wiki. See --help)
--noerrata don't generate a "POD ERRORS" section
--help brief help message
--man full documentation
DESCRIPTION
This program is used for converting Pod text to Wiki text.
Pod is Perl's Plain Old Documentation format. See "man perlpod" or "perldoc perlpod".
A Wiki is a user extensible web site. It uses very simple mark-up that is converted to Html. For an introduction to Wikis see:
http://en.wikipedia.org/wiki/Wiki
OPTIONS
podfile
The input file that contains the Pod file to be converted. It can also be stdin.
outfile
The converted output file in wiki format. Defaults to stdout if not specified.
--style or -s
Sets the wiki style of the output. If no "style" is specified the program defaults to "wiki". The available options are:
wiki
This is the original Wiki format as used on Ward Cunningham's Portland repository of Patterns. See http://c2.com/cgi/wiki
kwiki
This is the format as used by Brian Ingerson's Kwiki: http://www.kwiki.org
usemod
This is the format used by the Usemod wikis. See: http://www.usemod.com/cgi-bin/wiki.pl
twiki
This is the format used by TWiki wikis. See: http://twiki.org/
tiddlywiki
This is the format used by the TiddlyWiki. See: http://www.tiddlywiki.com/
textile
The Textile markup format as used on GitHub. See: http://textile.thresholdstate.com/
wikipedia or mediawiki
This is the format used by Wikipedia and MediaWiki wikis. See: http://www.mediawiki.org/
moinmoin
This is the format used by MoinMoin wikis. See: http://moinmo.in/MoinMoinWiki
confluence
This is the format used by Confluence. See: http://www.atlassian.com/software/confluence/
--noerrata or -noe
Don't generate a "POD ERRORS" section at the end of the document. Equivalent to the "Pod::Simple::no_errata_section()" method.
--help or -h
Print a brief help message and exits.
--man or -m
Prints the manual page and exits.
DISCLAIMER OF WARRANTY
Please refer to the DISCLAIMER OF WARRANTY in Pod::Simple::Wiki.
AUTHOR
John McNamara jmcnamara@cpan.org
COPYRIGHT
X MMIII-MMVIII, John McNamara.
All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
perl v5.10.1 2009-08-26 POD2WIKI(1p)