Sponsored Content
The Lounge What is on Your Mind? Quest for the most useless command Post 302882200 by wisecracker on Sunday 5th of January 2014 04:35:24 AM
Old 01-05-2014
And I am guilty occasioanlly... ;o)
Code:
echo -n "" > /path/to/emptyfile
printf "" > /path/to/emptyfile
touch /path/to/emptyfile

And others that require a command...

Instead of:-
Code:
> /path/to/emptyfile

Also I thought : is a NOP placeholder or am I missing something; e.g.
Code:
useless_function()
{
        : # Do nothing.
}

 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

a quest regarding the path?

Hi mates, A newbe in UNIX world. how can i add a specific path to my default unix path. ie i want to add a directory let is say /abdul to the path and whenever i log in unix should recognize it. it is mostly importnant when i use the cc command to compile my c programs ...and i have to use ./cc... (2 Replies)
Discussion started by: abdul
2 Replies

2. UNIX for Dummies Questions & Answers

useless command

Hi, I came across with this line "set -x" in the beginning of a script, but i can't find one logic reason for this... should be something else after, i think.... anyone can help? tanx (2 Replies)
Discussion started by: cabresto
2 Replies

3. UNIX for Advanced & Expert Users

IBM Quest Market-Basket Synthetic Data Generator

Hi All, I am trying to install the IBM data set generator. I have to use the Solaris to use this tool. The following link is supposed to tell the steps on how to use the IBM tool on the Solaris server. IBM Quest Market-Basket Synthetic Data Generator Unfortunately, I don't understand what is... (2 Replies)
Discussion started by: loollool
2 Replies

4. UNIX for Advanced & Expert Users

Quest on NFS with 1 Server & 2 Clients

Hello; I work now with a team which has based her "applications" on the following schema: 1 NFS client C1 (linux redhat 5) writes a file fic.dat on a NFS SERVER S (RH 5) Another NFS client C2 is waiting for the same file fic.dat (on NFS server S1), and, when "fic.dat" appears, then makes... (8 Replies)
Discussion started by: SolarMax
8 Replies

5. Shell Programming and Scripting

Useless Cat usage

cat ~/text.xt | while read line do echo ${line} | perl -pe 's/(\d+)/localtime($1)/e' done how can i efficiently re-code the above? also, no matter how i run this, i'm not getting the current/correct date. the contents of the "text.xt" looks like this: SERVICES... (2 Replies)
Discussion started by: SkySmart
2 Replies

6. What is on Your Mind?

Fighting useless use of cat

Fighting UUOC cat filename|while read line; do ... with sed 's/cat *\(*\) *|/<\1/g' I found that while loops are converted to <filename while read line; do ... Syntax error! Why syntax error? It would perfectly make sense. Further, read the article how-would-you-like-your-loops-served-today... (5 Replies)
Discussion started by: MadeInGermany
5 Replies
Graphics::Primitive::Insets(3pm)			User Contributed Perl Documentation			  Graphics::Primitive::Insets(3pm)

NAME
Graphics::Primitive::Insets - Space between things DESCRIPTION
Graphics::Primitive::Insets represents the amount of space that surrounds something. This object can be used to represent either padding or margins (in the CSS sense, one being inside the bounding box, the other being outside) SYNOPSIS
use Graphics::Primitive::Insets; my $insets = Graphics::Primitive::Insets->new({ top => 5, bottom => 5, left => 5, right => 5 }); METHODS
Constructor new Creates a new Graphics::Primitive::Insets. Instance Methods as_array Return these insets as an array in the form of top, right, bottom and left. bottom Set/Get the inset from the bottom. equal_to Determine if these Insets are equal to another. left Set/Get the inset from the left. right Set/Get the inset from the right. top Set/Get the inset from the top. zero Sets all the insets (top, left, bottom, right) to 0. AUTHOR
Cory Watson, "<gphat@cpan.org>" SEE ALSO
perl(1) COPYRIGHT &; LICENSE Copyright 2008-2010 by Cory G Watson. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2010-08-21 Graphics::Primitive::Insets(3pm)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy