11-28-2008
Aix OS
if(Know Answer){
printf ("Is AIX is a free software ?\n");
}
else
printf ("What is the price of this OS ?\n");
}
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
i have created a pipe which outputs a list of words such as:
hello
yay
foo
yah
good
goof
and from this i want to find words which only differ by their last letters ie yay/yah and good/goof.
i would only need to print out the first instance of the word.
these words are not... (1 Reply)
Discussion started by: Streetrcr
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to quickly learn Unix because I am going to be using HP-UX soon.
Problem is I can't find download HP-UX.
Does anyone know a Unix OS I can download that is more like HP-UX?
I'm running windows vista at the moment. (3 Replies)
Discussion started by: budz
3 Replies
3. Shell Programming and Scripting
Greetings, I have been trying to merge the following lines:
Sat. May 9 8:00 PM
Sat. May 9 8:00 PM CW
Sat. May 9 8:00 PM CW Cursed
Sat. May 9 9:00 PM
Sat. May 9 9:00 PM CW
Sat. May 9 9:00 PM CW Sanctuary
Sat. May 16 8:00 PM
Sat. May 16 8:00 PM CW
Sat. May 16 8:00 PM CW Sanctuary
Sat. May... (2 Replies)
Discussion started by: adambot
2 Replies
4. Shell Programming and Scripting
i have a file like this:
wedd01A1 1
wedd01A2 2
wedd01A3 1
wedd02A2 3
wedd02A3 4
wadd02A1 1
wadd02A2 5
wqdd01A1 3
wsdd01A3 1
i want out like this:
A1 A2 A3
wedd01 1 2 1
wedd02 0 3 4
wadd02 1 5 0
wqdd01 3 0 0
wsdd01 0 0 1 (8 Replies)
Discussion started by: aydj
8 Replies
5. AIX
Hi
Do you know if there is a similar tool like monit in AIX's packages?
thanks
Regards
Israel. (1 Reply)
Discussion started by: iga3725
1 Replies
6. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
saferm is a replacement for the rm utility. Rather than removing files, it move files in a sub directoy called".saferm" in the user's home directory. If "~/.saferm" doesn't exist, it is automatically created. The -l options lists the ... (3 Replies)
Discussion started by: Joey12
3 Replies
7. AIX
Hi ,
I want to know is there any command in AIX similar to pkginfo ?
that shows details of all packages installed and we can grep whatever we need to check?
Thanks
Rafi (2 Replies)
Discussion started by: rafi49
2 Replies
8. Shell Programming and Scripting
I'm trying to code a line (ksh) without much success along the lines of :-
If
then
.....etc
fi
I know i could use the case statement but i'm hoping someone may know a one liner or a simple workaround. (8 Replies)
Discussion started by: squrcles
8 Replies
PRINTF(1) User Commands PRINTF(1)
NAME
printf - format and print data
SYNOPSIS
printf FORMAT [ARGUMENT]...
printf OPTION
DESCRIPTION
Print ARGUMENT(s) according to FORMAT, or execute according to OPTION:
--help display this help and exit
--version
output version information and exit
FORMAT controls the output as in C printf. Interpreted sequences are:
" double quote
\ backslash
a alert (BEL)
backspace
c produce no further output
e escape
f form feed
new line
carriage return
horizontal tab
v vertical tab
NNN byte with octal value NNN (1 to 3 digits)
xHH byte with hexadecimal value HH (1 to 2 digits)
uHHHH Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits)
UHHHHHHHH
Unicode character with hex value HHHHHHHH (8 digits)
%% a single %
%b ARGUMENT as a string with '' escapes interpreted, except that octal escapes are of the form or NNN
%q ARGUMENT is printed in a format that can be reused as shell input, escaping non-printable characters with the proposed POSIX $''
syntax.
and all C format specifications ending with one of diouxXfeEgGcs, with ARGUMENTs converted to proper type first. Variable widths are han-
dled.
NOTE: your shell may have its own version of printf, which usually supersedes the version described here. Please refer to your shell's
documentation for details about the options it supports.
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report printf translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
printf(3)
Full documentation at: <http://www.gnu.org/software/coreutils/printf>
or available locally via: info '(coreutils) printf invocation'
GNU coreutils 8.28 January 2018 PRINTF(1)