I didn't try it but maybe something like (feel free to test/adapt/fix) but use it carefully
This method should fill the space with 4Gb files until the remaining space to fill to the wanted threshold is lower , then fill the remaining space with a last file so the threshold is reached
If you want to fill all the remaining space to the wanted threshold in one shot you can try
As previously mentionned i didn't test it so you can give a shot in test environment, but use it carefully.
---------- Post updated at 10:13 PM ---------- Previous update was at 10:05 PM ----------
note that if the remaining space is bigger than 2^32 you may have to ensure that you run a 64bit version of the dd command
---------- Post updated at 10:13 PM ---------- Previous update was at 10:13 PM ----------
(i meant the remaining space to fill up until you reach the chosen threshold)
hello,
I have a file that has lines with different lengts. I want this file to be filled up with a zero so that al the lines have the same length.
Please advice?
File 1:
-----------
2310
2009
830
1345
Result
File 2:
----------
2310
2009
0830 (3 Replies)
Hi ....
we are having the below file .Column 1, Column 2 ,column 3 are key fields...
In the below ...for 2 nd , 3 rd row the repeated key column is missing ....
i want the new file to be populated with all missing key columns.
... (11 Replies)
It can't be that hard, but I just can't figure it out:
I have file like:
File Sub-brick M_1 S_1 M_2 S_2 M_4 S_4 ...
xxx 1 214 731 228 621 132 578 ...
and would like to get 0 0 where M_3 S_3 is missing
xxx 1 214 731 228 621 0 0 132 578 ...
I wrote following script, but can't figure out... (3 Replies)
Hello All,
Got a question to make a script what reads a directory and put the file names from that directory in a file with some extra text.
ls /tempdir
output is:
file1.gfh
file2.txt
file4.zzz
these file names (always with an extention) must be placed in a line and written to... (2 Replies)
Hi,
I've got a file with several columns where some entries are missing.
Example:
a b c d
f g h
j k l
p y r
I need to replace the empty spaces with zero, so the new file would be:
a b c d
f 0 g h
j k 0 l
p y 0 r
The original file is tab delimited.
Many thansk for... (3 Replies)
Hi everyone, I am using shell scripting on a Unix SCO box. It calls a C program named zerofill. I do not know anything about C. I am having an issue with a hash total that should only be zero filled 10 positions but the record has 11 positions.
DEBUG RESULTS
+ nice -n -5 bc -l /tmp/fhash8395... (0 Replies)
How do I zero fill a string. E.g pad a string to two digits
m=`date "+%m"`
pm=`expr $m - 1`
echo $pm
the above code echoes 1. I want it to echo 01. Any ideas? (3 Replies)
hi all! i have a script with an output like this
abc 123 1246
abc 1386
abc 2589
abc 7383
what can i do if i want to fill the 2nd column with the 2nd string '123'
abc 123 1246
abc 123 1386
abc 123 2589
abc 123 7383
thanks! (3 Replies)
Hi All,
I have 100 .txt files which look like this:
3
4
5
6
7
Now, some files have some numbers missing in them and they look like this:
4
5
6 (6 Replies)
Hi,
I have a data sample as shown below. I want to fill in the left column so that the line will be continuous. For example, between 1 and 5 should be 2,3,4. And corresponding values in the right column will be 0. Thus the expected data should look like that:
1 1
1 10
1 2
1 3
1 5
1 6
2 0... (6 Replies)
Discussion started by: theanh0508
6 Replies
LEARN ABOUT SUSE
free
FREE(1) Linux User's Manual FREE(1)NAME
free - Display amount of free and used memory in the system
SYNOPSIS
free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]
DESCRIPTION
free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel. The
shared memory column should be ignored; it is obsolete.
Options
The -b switch displays the amount of memory in bytes; the -k switch (set by default) displays it in kilobytes; the -m switch displays it in
megabytes.
The -t switch displays a line containing the totals.
The -o switch disables the display of a "buffer adjusted" line. If the -o option is not specified, free subtracts buffer memory from the
used memory and adds it to the free memory reported.
The -s switch activates continuous polling delay seconds apart. You may actually specify any floating point number for delay, usleep(3) is
used for microsecond resolution delay times.
The -V displays version information.
FILES
/proc/meminfo-- memory information
SEE ALSO ps(1), slabtop(1), vmstat(8), top(1)AUTHORS
Written by Brian Edmonds.
Send bug reports to <albert@users.sf.net>
Cohesive Systems 20 Mar 1993 FREE(1)