10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I have created a script that searches for different things and "sanitizes" the findings from files. Currently the user is required to put in a hostname (server.serverfarm.abc) one at a time to replace. I would like the user be able to use *.*.abc in grep and then pipe into sed to... (1 Reply)
Discussion started by: jvezinat
1 Replies
2. Shell Programming and Scripting
I used this site to check a script.
ShellCheck - shell script analysis tool
Line 57:
zip -u -q Desktop_Items.zip *.desktop
^-- SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options.
I do not understand what is wrong with my zip... (6 Replies)
Discussion started by: drew77
6 Replies
3. Shell Programming and Scripting
Hi
I need some suggestion on glob function.
I am trying to write a python program to grep some specific files in a particular directory.
In the directory i have some files like below
abc.log
abc.pid
abc.tar
gadd.tar
gat.log
gat.tar
in this directory i need to grep onlu my hostname files,... (1 Reply)
Discussion started by: kumar85shiv
1 Replies
4. Shell Programming and Scripting
Hi
I Have a directory and i have some files below
abc.txt
abc.gif
gtee.txt
ghod.pid
umni.log
unmi.tar
How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies
5. Shell Programming and Scripting
If you have a look at this thread, you'll see that users have been posting the output a script which are numbers that range from 2 to 5 decimal places. If I dump this entire thread to txt file, how can I:
1) Delete everything except for numbers of the following formats (where 'x' is a digit and... (5 Replies)
Discussion started by: graysky
5 Replies
6. Shell Programming and Scripting
I encountered a weird issue with globbing in perl not returning all files, while I was testing out a script for recursive dir-processing on my Synology NAS.
Basically it didn't show (/match?) all the files in a specific directory. If I move the file to a different directory or even rename it, it... (2 Replies)
Discussion started by: odyssey
2 Replies
7. UNIX for Dummies Questions & Answers
I noticed that sometimes there is "~#" or "~$" in the terminal. What is that? I can't make any research in google because I don't know what are they called. I even tried reading pdf's or books but unfortunately, I wasn't lucky to find out. Maybe I was not persistent enough but I am really... (3 Replies)
Discussion started by: chams
3 Replies
8. Shell Programming and Scripting
Hi,
How do I print a line with symbols in a file?
Exp:
If I want to print line: Hi "Lisa;John"
Command:
print FILE "Hi "Lisa;John""; - will give me error Bareword found where operator expected...
Can someone advise how can I print any line consiting symbols like example above. Thanks... (3 Replies)
Discussion started by: SSGKT
3 Replies
9. Programming
Greetings,
I am slowly learning a few things but am far from being an expert. I am at the point now that I
would like to be able write some ANSI C code on HP-UX 10.2. Just a hobbie... I am just using cc,
which came with the HP-UX 10.2 ...
I don't have the manuals for the development... (7 Replies)
Discussion started by: Dirk_
7 Replies
10. Shell Programming and Scripting
Can anyone please tell me what the following do
1. <
2. <<
Thanks
Calypso (1 Reply)
Discussion started by: Calypso
1 Replies
Perl::Critic::Policy::Modules::ProhibitAutomaticExportatUser3Contributed Perl DocuPerl::Critic::Policy::Modules::ProhibitAutomaticExportation(3pm)
NAME
Perl::Critic::Policy::Modules::ProhibitAutomaticExportation - Export symbols via "@EXPORT_OK" or "%EXPORT_TAGS" instead of "@EXPORT".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
When using Exporter, symbols placed in the @EXPORT variable are automatically exported into the caller's namespace. Although convenient,
this practice is not polite, and may cause serious problems if the caller declares the same symbols. The best practice is to place your
symbols in @EXPORT_OK or %EXPORT_TAGS and let the caller choose exactly which symbols to export.
package Foo;
use base qw(Exporter);
our @EXPORT = qw(foo $bar @baz); # not ok
our @EXPORT_OK = qw(foo $bar @baz); # ok
our %EXPORT_TAGS = ( all => [ qw(foo $bar @baz) ] ); # ok
CONFIGURATION
This Policy is not configurable except for the standard options.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-07 Perl::Critic::Policy::Modules::ProhibitAutomaticExportation(3pm)