Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-17-2009, 07:52 AM   #16
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551

Originally Posted by jiml8 View Post
That is what I figured you were up to
I figured SOMEONE would figure it out sooner or later!
Old 09-17-2009, 11:32 AM   #17
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,716

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Originally Posted by Hko View Post
Also I now noticed that the syntax of printf with parenthesis is accepted and works, though the man page of awk says it is a statement and show printf without parenthesis. So this may be a GNU-awk-only feature.
It is not a Gnu-awk specific feature but actually a correct POSIX syntax.
I would recommend using it as it makes boundaries clearer and let the printf command looks like the C language equivalent.
Old 09-19-2009, 08:21 PM   #18
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
thats an intresting site -- a moderator asking for help


awk, bash, import, variable

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[BASH] Hangman Game: changing a character within a variable without use of sed or awk uzi85 Linux - Newbie 1 03-27-2009 02:41 AM
Using global variable in awk (bash script) kopeda Programming 2 04-24-2007 02:47 AM
Bash Awk Variable problem _hadi_ Programming 5 12-13-2006 01:25 AM
cannot export result from awk into a variable in a bash script Emmanuel_uk Linux - Newbie 4 03-07-2005 02:54 AM
Accessing Shell variable in awk script dileepkk Linux - General 1 10-07-2004 08:47 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration