Sponsored Content
Full Discussion: Summing file size and output
Top Forums UNIX for Advanced & Expert Users Summing file size and output Post 302257546 by joeyg on Wednesday 12th of November 2008 12:30:13 PM
Old 11-12-2008
Question

Have you tried a formatted printf command?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

compare file size from a output file from a script

Hi guys, firstly I'm working on SunOS 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V240 I've made a script to compress two directory and then send them to an other server via ftp. This is working very well. Inside theis script I decide to log usefull data for troubleshooting in case of... (7 Replies)
Discussion started by: moustik
7 Replies

2. UNIX for Dummies Questions & Answers

ls -l output file size

Hi Guys, I'm working on various platforms: Solaris 8 HP Tru64 RH Linux I'm on the HP Tru64 system and I've got to audit a particular directory for large files that are no longer being used. If I do an ls -l I get to see the file size. I'd just like to be clear on what that file size... (4 Replies)
Discussion started by: Stin
4 Replies

3. Shell Programming and Scripting

how to make a line BLINKING in output and also how to increase font size in output

how to make a line BLINKING in output and also how to increase font size in output suppose in run a.sh script inside echo "hello world " i want that this should blink in the output and also the font size of hello world should be big .. could you please help me out in this (3 Replies)
Discussion started by: mail2sant
3 Replies

4. Shell Programming and Scripting

Limiting output file size

Hi guys, I want to know if there is a way to check the current size of the file that I output "stuff" to. For example, if I run a command that outputs data (like another shell script or C program) and i do something like `./a.out &> tempfile.txt` within the script, I want to be constantly... (2 Replies)
Discussion started by: solaris7
2 Replies

5. Solaris

Script fails when generated output file reaches a particular size

Hi All, New to unix. Here is the problem. Running a script that extracts data from hyperion essbase and generates a file in unix. This script fails most of the times with a very low success rate. The data has increased a lot in the last few months resulting in the file being more than 2 gb. ... (2 Replies)
Discussion started by: noufalshaw
2 Replies

6. Shell Programming and Scripting

Output after a perl script gives a file with size zero.

Hi, I have a unix shell script which generates a flat file after connecting to Teradata servers to fetch tables and views and also picks up modified unix scripts from the specified paths. Later on the script calls a perl script to assign a value based on the type of object in the flat file which... (2 Replies)
Discussion started by: yohasini
2 Replies

7. UNIX for Dummies Questions & Answers

Summing lines in a file

Can anyone tell me how sum values in each record of a file and append that value to the end? For instance a typical record will be: FY12,Budget,771100,,,,,,,,,250,-250 I'd like the record to become FY12,Budget,771100,,,,,,,,,250,-250,0 which can be put into another file. Thank you. (6 Replies)
Discussion started by: LearningLinux2
6 Replies

8. UNIX Desktop Questions & Answers

Summing file sizes

I was just curious about how to sum the total file size of a certain type of file. For instance: $find . -name "*.aif" will print out the paths to each .aif file. Instead of printing, how could one sum the total space used by all of the aif files? Thanks! Please use code tags (3 Replies)
Discussion started by: Alexander4444
3 Replies

9. UNIX for Dummies Questions & Answers

Create csv with output filenames and file size

Hello All, Here is seeking a bit of help in trying to solve a problem. I am required to create a csv file as shown below: output.csv -> output_1,output_2,output_3,...,output_<N> filename1:20,filename2:30,filename3:30,...,filename<N>:30 by listing output_1, output_2,... , output<N> as... (3 Replies)
Discussion started by: vkumbhakarna
3 Replies

10. Shell Programming and Scripting

Summing all fields in a file

I was playing around to see how stuff works, and was trying to sum all fields in a file. cat file 1 2 3 4 5 6 7 8 9 10 11 12 I made this script: awk 'BEGIN {OFS=RS}{$1=$1}{s+=$0} END {print "sum="s}' file This gives 15, why not 78? I test it like this awk 'BEGIN... (5 Replies)
Discussion started by: Jotne
5 Replies
gl_printf(3)							Svgalib User Manual						      gl_printf(3)

NAME
gl_printf - write formatted output in graphic mode SYNOPSIS
#include <vgagl.h> int gl_printf(int x, int y, const char *fmt, ...); DESCRIPTION
gl_printf writes, like printf(3) a formatted string to position (x, y) using the currently selected font. If one or both of x and y is neg- ative, the text printing continues at the last position. The special characters , , , a, and v have the usual effects. Printing wraps at the screen borders. Nevertheless, behaviour is undefined if not a single characters fits on the screen or if the initial position is outside the screen. The kind of text draw operation is set with gl_setwritemode(3). BEWARE! Prior to the of use of gl_printf(3) you must set a font. A good default initialization sequence is: gl_setfont(8, 8, gl_font8x8); gl_setwritemode(FONT_COMPRESSED + WRITEMODE_OVERWRITE); gl_setfontcolors(0, vga_white()); RETURN VALUE
The number of characters printed. BUGS
For compatibility reasons this function is not contained in a.out libraries. SEE ALSO
printf(3), svgalib(7), vgagl(7), gl_colorfont(3), gl_expandfont(3), gl_font8x8(3), gl_setfont(3), gl_setfontcolors(3), gl_setwritemode(3), gl_write(3), gl_writechar(3), printftest(6). AUTHOR
This function and manual page was written by Trek <trek00@freenet.hut.fi> <trek@mediaservice.net>. Svgalib 1.3.0 22 Feb 1997 gl_printf(3)
All times are GMT -4. The time now is 10:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy