Unix beginner. Need some very basic help.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unix beginner. Need some very basic help.
# 8  
Old 04-01-2008
Quote:
Originally Posted by TiznaraN
isn't $NF the number of fields per line?

NF is the number of fields in the current line.
$NF is the content of that field.
Quote:
7.67563e+10

printf "%.0f\n", total
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Beginner bash - basic shell script 'while' help...

Hi everyone, first time visitor to these forums here. Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
Discussion started by: Meta
4 Replies

2. UNIX for Dummies Questions & Answers

UNIX Beginner's Book

I am a beginner and have recently started to study unix. I checked some of the posts on this forum just to check if a new member like me can easily be guided and found it very interesting. This seems like a great place where i can get answer to my doubts and questions. I checked the thread for... (1 Reply)
Discussion started by: kaal
1 Replies

3. HP-UX

Need HP unix documentation for beginner

Hello All, I am working in HP unix since 5 years on application and support. But in order to get opportunity out side i need to learn admintration Can somebody help me to guide hot start for this. Do we have any doc(pdf) to start with. Thanks Krsnadasa (1 Reply)
Discussion started by: krsnadasa
1 Replies

4. UNIX for Dummies Questions & Answers

5 Unix things you wish you knew as a beginner...

I am trying to get better at UNIX, and I wanted to post a question so I can take some advice from more experienced programmers. What are some things that you wished you knew (while you were learning UNIX) that you think every beginner should know? (2 Replies)
Discussion started by: statichazard
2 Replies

5. Shell Programming and Scripting

Unix Beginner needs help

how do i implement a script that asks user to input a word. it should ask for input a word continuously until the word is longer than 5 characters then stop. this is what i have so far #!/bin/bash read -p "enter word" word1 while ; do echo "continue" done (4 Replies)
Discussion started by: marcusstar10
4 Replies

6. What is on Your Mind?

Unix / Linux Beginner...

Hello folks. I am new to Unix / Linux and this forum and wanted to introduce myself. Currently I work as a system analyst on an old IBM S/390 mainframe system with Sun and SGI at the peripheral that runs the heart of the space surveillance system for the US Air Force. I hear that our future... (2 Replies)
Discussion started by: dbeck
2 Replies

7. UNIX for Dummies Questions & Answers

Unix Books for Beginner

Hi, I am a beginner and I want to learn Unix, so I want to buy a good unix books. Here's a few books that I think can be useful, but I nned you suggestion and comments. 1. Beginning UNIX by Wrox 2. Mastering Unix by Katherine Wrightson, Joseph Merlino, .. 3. Unix in a Nutshell, Fourth... (1 Reply)
Discussion started by: wizzkid
1 Replies

8. UNIX for Dummies Questions & Answers

Unix beginner book help

Due to my new job I need to learn Unix to advance in the company and I am mainly a windows and mac user. What is a good book to get me started on the right path and hopefully prevent me from wasting money on several books and weeks of reading. Any response is welcomed thanks in advance. (3 Replies)
Discussion started by: windowsux
3 Replies

9. UNIX for Dummies Questions & Answers

UNIX beginner - I need help please

Hi my name is Jenny. I'm a very very big beginner with UNIX. I've made Forms on my website, but need to add CGI to compliment them. Presently, I don't have a host that supports UNIX. Is there anywhere I can connect to a UNIX session for free? If so, will they most likely have the latest... (2 Replies)
Discussion started by: JennyW
2 Replies
Login or Register to Ask a Question
MIME::Field::ParamVal(3)				User Contributed Perl Documentation				  MIME::Field::ParamVal(3)

NAME
MIME::Field::ParamVal - subclass of Mail::Field, for structured MIME fields SYNOPSIS
# Create an object for a content-type field: $field = new Mail::Field 'Content-type'; # Set some attributes: $field->param('_' => 'text/html'); $field->param('charset' => 'us-ascii'); $field->param('boundary' => '---ABC---'); # Same: $field->set('_' => 'text/html', 'charset' => 'us-ascii', 'boundary' => '---ABC---'); # Get an attribute, or undefined if not present: print "no id!" if defined($field->param('id')); # Same, but use empty string for missing values: print "no id!" if ($field->paramstr('id') eq ''); # Output as string: print $field->stringify, " "; DESCRIPTION
This is an abstract superclass of most MIME fields. It handles fields with a general syntax like this: Content-Type: Message/Partial; number=2; total=3; id="oc=jpbe0M2Yt4s@thumper.bellcore.com" Comments are supported between items, like this: Content-Type: Message/Partial; (a comment) number=2 (another comment) ; (yet another comment) total=3; id="oc=jpbe0M2Yt4s@thumper.bellcore.com" PUBLIC INTERFACE
set [\%PARAMHASH | KEY=>VAL,...,KEY=>VAL] Instance method. Set this field. The paramhash should contain parameter names in all lowercase, with the special "_" parameter name signifying the "default" (unnamed) parameter for the field: # Set up to be... # # Content-type: Message/Partial; number=2; total=3; id="ocj=pbe0M2" # $conttype->set('_' => 'Message/Partial', 'number' => 2, 'total' => 3, 'id' => "ocj=pbe0M2"); Note that a single argument is taken to be a reference to a paramhash, while multiple args are taken to be the elements of the paramhash themselves. Supplying undef for a hashref, or an empty set of values, effectively clears the object. The self object is returned. parse_params STRING Class/instance utility method. Extract parameter info from a structured field, and return it as a hash reference. For example, here is a field with parameters: Content-Type: Message/Partial; number=2; total=3; id="oc=jpbe0M2Yt4s@thumper.bellcore.com" Here is how you'd extract them: $params = $class->parse_params('content-type'); if ($$params{'_'} eq 'message/partial') { $number = $$params{'number'}; $total = $$params{'total'}; $id = $$params{'id'}; } Like field names, parameter names are coerced to lowercase. The special '_' parameter means the default parameter for the field. NOTE: This has been provided as a public method to support backwards compatibility, but you probably shouldn't use it. parse STRING Class/instance method. Parse the string into the instance. Any previous information is wiped. The self object is returned. May also be used as a constructor. param PARAMNAME,[VALUE] Instance method. Return the given parameter, or undef if it isn't there. With argument, set the parameter to that VALUE. The PARAMNAME is case-insensitive. A "_" refers to the "default" parameter. paramstr PARAMNAME,[VALUE] Instance method. Like param(): return the given parameter, or empty if it isn't there. With argument, set the parameter to that VALUE. The PARAMNAME is case-insensitive. A "_" refers to the "default" parameter. stringify Instance method. Convert the field to a string, and return it. tag Instance method, abstract. Return the tag for this field. SEE ALSO
Mail::Field perl v5.18.2 2013-11-14 MIME::Field::ParamVal(3)