hello, Im at another part of the program i am writing. Where i think i'm going to need to use the printf command.
If anyone can help me figure out the printf layout i would greatly appreicate it.
thanks (4 Replies)
Here is the code I'm using
{
printf("%11d %4.2f\% %4.2f\%\n", $1,$2,$3);
}
I want the output to look something like
1235415234 12.24% 52.46%
Instead it looks something like
319203842 42.27\%4.2f\%
How do I just print a "%" without awk or printf thinking I'm trying to do... (1 Reply)
I want to print a string say "str1 str2 str3 str4" using printf.
If I try printing it using printf it is printing as follows.
output
-------
str1
str2
str3
str4
btw I'm working in AIX.
This is my first post in this forum :)
regards,
rakesh (4 Replies)
Hi,
I a sequance number from 1-999 and i want asing the value like 001,002..999
Exp:
file_001
file_002
file_003...
file_999
How can i disaplay the sequnace number as mention above. (3 Replies)
hallow all i need your advice about this script
i have script like this:
INDEX=/zpool1/NFS/INDEX/${1}
SCRIPT=/zpool1/NFS/script/${1}
LIST=SAMPLE
cd ${SCRIPT}
for i in `cat ${LIST}`
do
GETDATE=`echo ${i}|awk '{print substr($1,9,8)}'`
/usr/xpg4/bin/awk -F ":" '{close(f);f=$4}{print >>... (4 Replies)
Im a newbie to programming language, i found tat there r these function called printf and putchar() as well as scanf and getchar(), im curious abt why do dey hav these 2 different function although dey r doing the same instruction? :confused: (13 Replies)
Hi,
Struggling with single quotes, double quotes, etc.
I want to print a header line, followed by lines with actual values, based on a print option.
In real life it is going to be something like 15 print options and 50 values.
Output will be 1 header and several value lines.
In this example... (5 Replies)
Hello,
I have two text files, each with a single column,
file 1:
124152970
123899868
123476854
54258288
123117283
file 2:
124152970
123899868
54258288
123117283
122108330 (5 Replies)
Discussion started by: LMHmedchem
5 Replies
LEARN ABOUT OSF1
rcinet
rcinet(8) System Manager's Manual rcinet(8)NAME
rcinet - Restarts, starts, or stops Internet network services on the system
SYNOPSIS
/usr/sbin/rcinet option
OPTIONS
You must specify one of the following options with the rcinet command: Restarts the network on the system. Starts the network on the sys-
tem. Stops the network on the system.
You can restrict the restart, start, or stop operation to either IPv4 or IPv6 networks by specifying inet or inet6, respectively, as the
second parameter. By default, the script assumes both IPv4 and IPv6.
DESCRIPTION
The rcinet script allows system administrators to restart, start, or stop the Internet network services on the system while it is running
in multiuser mode by using one of the options.
RESTRICTIONS
Superuser privilege is required.
Warn users that the system is being removed from the network.
File systems that were not mounted using the /etc/fstab file or the automount command must be unmounted with the umount command. You must
remount these file systems using the mount command after the network is started on your system.
ERRORS
The rcinet script prints an error message to stderr if the network is not configured on the system.
FILES
The network shell scripts are located in /sbin/init.d with symbolic links in /sbin/rc0.d and /sbin/rc3.d.
SEE ALSO
Commands: mount(8)
Network Administration
rcinet(8)