Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions Not able understand logic and working Post 303023124 by RudiC on Wednesday 12th of September 2018 08:59:20 AM
Old 09-12-2018
And (apart from the clumsy one-liner) the question is? Why don't you analyse the looong pipe step by step? Does the result (a sample of which might have been helpful) satisfy your needs?
 

2 More Discussions You Might Find Interesting

1. Solaris

Cant understand the File system working nature

Hi, We have a filesystem whose usage has gone above 81%, i tried to zip some files in the sub directories but the space is not released in the main file system. > df -h Filesystem size used avail capacity Mounted on /u01/app 5.8G 4.6G 1.2G 81% ... (2 Replies)
Discussion started by: nokiak810
2 Replies

2. Shell Programming and Scripting

Need to understand a couple of Shell Logic

Hi, I am trying what the following loop does : for i in XYZ do for j in M1 R1 R2 R3 do if then kList="" n=1 while do kList="$kList $n" let n++ done There are a couple of loop as mentioned above for R1.R2.R3. (1 Reply)
Discussion started by: johnprince1980
1 Replies
Perl::Critic::Policy::ControlStructures::ProhibitUnlessBUsersContributed Perl DocuPerl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks(3)

NAME
Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks - Write "if(! $condition)" instead of "unless($condition)". AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
Conway discourages using "unless" because it leads to double-negatives that are hard to understand. Instead, reverse the logic and use "if". unless($condition) { do_something() } #not ok unless(! $no_flag) { do_something() } #really bad if( ! $condition) { do_something() } #ok This Policy only covers the block-form of "unless". For the postfix variety, see "ProhibitPostfixControls". CONFIGURATION
This Policy is not configurable except for the standard options. SEE ALSO
Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls 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.16.3 2014-06-09 Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks(3)
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy