Hi,
1-I want to calculate the size of all files which are generated during last month in a directory. How can I do that ?
Of cours, I find them by :
$ls -l | grep jun
but how to calculate the sum of their size ?
2- the same but for all files generated last month and before that.
many thanks... (11 Replies)
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Hi,
I have 20 files which have respective 50 lines with different values.
I would like to process each line of the 50 lines in these 20 files one at a time and do an average of 3rd field ($3) of these 20 files. This will be output to an output file.
Instead of using join to generate whole... (8 Replies)
grep -f taking long time to compare for big files, any alternate for fast check
I am using grep -f file1 file2 to check - to ckeck dups/common rows prsents. But my files contains file1 contains 5gb and file 2 contains 50 mb and its taking such a long time to compare the files.
Do we have any... (10 Replies)
Hi,
I wanted a script to find sum of files for a particular date, below is my script
ls -lrt *.req | nawk '$6 == "Aug"' | nawk '$7 == "1"'| awk '{sum = sum + $5} END {print sum}'
However, i get the error below
/usr/bin/ls: arg list too long
How do i fix that.
Many thanks before. (2 Replies)
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Dear all,
Please help me to write a script that can calculate the size of files.
For example: I have a directory which contain thousands of files. I need to know the size of files that their name begin with abc_123
Thank all!! (4 Replies)
Hi,
I am running the following command, and it tries to delete some dn from ldap, however, it takes lot of time before it finally request LDAP server to delete it.
I am trying to find why it is taking lot of time. Could you anyone help me in this regard. I have copies the pstack output, and... (3 Replies)
Hi,
Can I find size of the file from size of the buffer written?
nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie);
Thank You :) (1 Reply)
Discussion started by: ezee
1 Replies
LEARN ABOUT CENTOS
grub2-mkrescue
GRUB-MKRESCUE(3) Library Functions Manual GRUB-MKRESCUE(3)NAME
grub-mkrescue -- Generate a GRUB rescue image using GNU Xorriso.
SYNOPSIS
grub-mkrescue [-o | --output=FILE] [--modules=MODULES]
[--install-modules=MODULES] [--themes=THEMES]
[--fonts=FONTS] [--locales=LOCALES]
[--compress[=no,xz,gz,lzo]] [-d | --directory=DIR]
[--grub-mkimage=FILE] [--rom-directory=DIR]
[--xorriso=FILE] [--grub-glue-efi=FILE]
[--grub-render-label=FILE] [--label-font=FILE]
[--label-color=COLOR] [--label-bgcolor=FILE]
[--product-name=STRING] [--product-version=STRING]
[--sparc-boot] [--arcs-boot]
DESCRIPTION
grub-mkrescue can be used to generate a rescue image with the GRUB bootloader.
OPTIONS --output=FILE
Write the generated file to FILE. The default is to write to standard output.
--modules=MODULES
Pre-load modules specified by MODULES.
--install-modules=MODULES
Install only MODULES and their dependencies. The default is to install all available modules.
--themes=THEMES
Install THEMES. The default is to install the starfield theme, if available.
--fonts=FONTS
Install FONTS. The default is to install the unicode font.
--locales=LOCALES
Install only locales listed in LOCALES. The default is to install all available locales.
--compress[=no,xz,gz,lzo]
Compress GRUB files using the specified compression algorithm.
--directory=DIR
Use images and modules in DIR.
--grub-mkimage=FILE
Use FILE as grub-mkimage(1). The default is /usr/bin/grub-mkimage.
--rom-directory=DIR
Save ROM images in DIR.
--xorriso=FILE
Use FILE as xorriso.
--grub-glue-efi=FILE
Use FILE as grub-glue-efi(3).
--grub-render-label=FILE
Use FILE as grub-render-label(3).
--label-font=FILE
Use FILE as the font file for generated labels.
--label-color=COLOR
Use COLOR as the color for generated labels.
--label-bgcolor=COLOR
Use COLOR as the background color for generated labels.
--product-name=STRING
Use STRING as the product name in generated labels.
--product-version=STRING
Use STRING as the product version in generated labels.
--sparc-boot
Enable booting the SPARC platform. This disables HFS+, APM, ARCS, and "boot as disk image" on the i386-pc target platform.
--arcs-boot
Enable ARCS booting. This is typically for big-endian MIPS machines, and disables HFS+, APM, sparc64, and "boot as disk image" on
the i386-pc target platform.
-- All options after a -- will be passed directly to xorriso's command line when generating the image.
SEE ALSO
info grub
Wed Feb 26 2014 GRUB-MKRESCUE(3)