Sponsored Content
Full Discussion: additions
Top Forums UNIX for Advanced & Expert Users additions Post 302431533 by Tytalus on Tuesday 22nd of June 2010 05:34:40 AM
Old 06-22-2010
Not sure if this is exactly what you want, as in your question the nuber of trailing zeroes changes from i/p to o/p, but, something like:

Code:
> cat infile
10000.0000
20000.00

> awk '{printf("%f\n",$1+NR)}' infile
10001.000000
20002.000000

or

> awk '{printf("%.3f\n",$1+NR)}' infile
10001.000
20002.000

Should get you heading in the right direction and give you something to play about with and get to your liking..
 

5 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

proposed additions to the 'books' subforum in the 'Dummies' forum

Dear admins, Over in the "UNIX for Dummies" forum there is a subforum: "I'm new to Unix. Which books should I read?" The 2 Bash guides and the Linux guide on this page: The Linux Documentation Project: Guides Have been really useful to me. Also (though the same info can be found by... (0 Replies)
Discussion started by: mbubb
0 Replies

2. Shell Programming and Scripting

script to find whether the difference between two files in only additions but not modifications

i basically have 2 files and sdiff of the files is given below sdiff file1 file 2 control_file < path INDEX < size 613 < mode 0444 ... (1 Reply)
Discussion started by: under_cons
1 Replies

3. Virtualization and Cloud Computing

Error in virtualbox while instaling guest additions

Failed to open the CD/DVD image /usr/lib/virtualbox/additions/VBoxGuestAdditions.iso. Could not get the storage format of the medium '/usr/lib/virtualbox/additions/VBoxGuestAdditions.iso' (VERR_NOT_SUPPORTED). Result Code: VBOX_E_IPRT_ERROR (0x80BB0005) Component: Medium Interface: IMedium... (9 Replies)
Discussion started by: upvan111
9 Replies

4. UNIX for Beginners Questions & Answers

Oracle VirtualBox Guest Additions installation help

Good day I recently attempted to to install Vbox Guest additions on CentOS 7.(Running on Windows 7 ) The packages downloaded fine . However when attempting to run the installer on CentOS 7 for vboxadditions_5.1.28_117968 , I received an error message written to ... (0 Replies)
Discussion started by: MrRobot
0 Replies

5. Shell Programming and Scripting

Command line additions

Evening: For quite some time I've searched for the correct procedure(S) to get LM 18.3X "live" (usb pendrive) to recognize/accept a casper-rw partiton. Here is an example of what I'm trying to do; https://www.unix.com/usbubuntu.wordpress.com/make-it-persistent/ ...only with LM 18. If... (0 Replies)
Discussion started by: 69Rixter
0 Replies
MAKE_SOCKDFC(8) 					      System Manager's Manual						   MAKE_SOCKDFC(8)

NAME
make_sockdfc - Generates frozen configuratyion file for SOCKS server SYNOPSIS
make_sockdfc [infile [outfile] ] DESCRIPTION
make_sockdfc reads in a plain-text configuration file for the SOCKS server and produces a frozen configuration file as the output. Both arguments are optional. The default for infile is /etc/sockd.conf; the default for outfile is /etc/sockd.fc. You may specify infile while omitting outfile, but you cannot specify outfile without also speficying infile. The contents of the frozen configuration file is essentially the memory image of the parsed input file. Using the frozen configuration file can reduce the start-up delay of the SOCKS server program since it no longer has to parse the file contents. When the SOCKS server starts, it always looks for the frozen configuration file /etc/sockd.fc first. If that file is not found, it then tries to use the plain-text configuration file /etc/sockd.conf. If you use frozen configuration, you must remember to run make_sockdfc every time after you modify the plain-text file or the SOCKS server will continue to use the frozen file of a previous configuration. To find out the contents of a frozen configuration file, use dump_sockdfc. FILES
/etc/sockd.fc, /etc/sockd.conf SEE ALSO
dump_sockdfc(8), sockd.conf(5), sockd.fc(5) AUTHOR
Ying-Da Lee, yingda@best.com or yingda@esd.sgi.com May 6, 1996 MAKE_SOCKDFC(8)
All times are GMT -4. The time now is 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy