Sponsored Content
Top Forums Shell Programming and Scripting AWK_Scripting_'If'_Statements Post 302665451 by Irishboy24 on Monday 2nd of July 2012 02:04:49 PM
Old 07-02-2012
Hi Elixir,

I understood this code but one question . what is the use of NF>1 and NF==1 here. could you please explain. thanks.
because without the NF field, i get the following

Code:
cat velocity | awk -F- '{print $2}; {sub(/V2EU90/,""); sub(/[A-za-z]/,""); print}'
226 1293 5000 4100
-226 1293 5000 4100 ## the first line is being worked on twice incorrectly. 

227 3103 170 1480

 
GPE-QUESTION(1) 						   gpe-question 						   GPE-QUESTION(1)

NAME
gpe-question - GPE interface for asking questions from shell scripts. SYNOPSIS
gpe-question [---icon] name {--question "Question text"} {--buttons icon1:text1} [icon2:text2 ...] DESCRIPTION
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page. gpe-question provides dialogues to raise a question within the GPE Palmtop Environment with cancel and ok buttons. OPTIONS
--question STRING The question to ask the user via the dialogue. --buttons type:label The type and label of the button(s) to be shown. Repeat for additional buttons. EXAMPLES
gpe-question "test" --question "Do you want to check first?" --buttons YES:yes NO:no AUTHOR
This manual page was written by Neil Williams <codehelp@debian.org> for the Debian(TM) system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. AUTHOR
Moray Allen Author. COPYRIGHT
Copyright (C) 2007 Neil Williams Debian 1 January 16, 2007 GPE-QUESTION(1)
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy