Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Adding file size & output to file
Name: hismail Date: February 23, 2006 at 23:35:05 Pacific OS: Sun Solaris 9 CPU/Ram: 4gig/3gig
Comment:
Hi How can I add the 5 field (size of file) from list & out put to a file eg: -rwxrwxr-x 1 root oracle 804252672 Feb 23 22:25 automate.zeda -rwxrwxr-x 1 root oracle 594944 Feb 23 22:25 autopart.zeda -rwxrwxr-x 1 root oracle 343950336 Feb 23 22:26 reports.zeda
804252672+594944+343950336= Output sum to a file in current directory.
Summary: I'm new to all awk and cygwin so stuck on something probably very simple. Awk will print multiple lines, but when I output to a file everything is stuck on just the 1 line. How do I make it output to ...
Summary: Do you know the command to print a normal file to that printer. It's probably something like: lp -potherprinter file Assuming that your C program outputs to stdout (the screen), you can pipe the outp...
Summary: The above is likely the correct way to do it....only I believe you would want the file to copy text from to be "output.out" if that is the name of the file your script outputs to. mail -s "error" name...