Write a shell program that takes one or any number of file names as input; sorts the lines of each file in ascending order and displays the non blank lines of each sorted file and merge them as one combined sorted file. The program should generate an error message in case any input file does not... (1 Reply)
Hi All,
Can anyone tell me how to sort data in a file using the “sort” command? Note that the records in the data file are not separated into fields. I know only the column positions of the data on which sorting should be done. For example say I've to sort based on the data present in between... (1 Reply)
Hi all
i am facing a problem in sorting command. The script depending on the sorting command works fine only if ascii sorting is done.
i need to know how to find out how to perform ascii sorting. sorting is case insensitive in
my file has data in the following format.
AA/BB/
AAA/BB\
also... (1 Reply)
Hi All,
I am new to unix,please help me on the following its urgent
I have 2 question
1 question
I need a script for following senario
I have get some files in directory by using grep
i need to sort all files to new files for example (abc.dat --> abc.dat.sort)
ex:grep *050508* ... (3 Replies)
Hi experts,
i have a file.If i will delete some intermediate records from the file then the output file will be in sorted format as show below.
file A
====
D001 ty gh
D002 fg hi
D003 jk lr
.
.
.
if i will delete the 2nd record then the output file is as follows:
outputfile:... (1 Reply)
Hi,
Please help me to solve sorting in CSV file.
I have 25 columns in my CSV. (Delimiter is ",")
Summary columns are from 10 to 13 which are should not be sorted. From 1-9 and 14-25 should be able to sort in ascending. how should i do this using Sort command in unix.
If no simple commands pls... (0 Replies)
Hi
I have a query regarding syncsort in Unix. What is the difference between Syncsort and normal sort. If I have 4 columns to do sort in a csv file and and first col, and third col to be done in descending order. How can I do that in Unix/
Please help me..Its urgent. (3 Replies)
Hi I need how to sort string characters
for Example i have a file that contains this data
example string "fan" but i want to display "afn" contained words
"afn" is in sorted format for fan.
File data
faty
gafny
gaifny
dafan
gafnniunt
O/p
gafny
gafnniunt (3 Replies)
hi experts,
I have a flat file with 2 fields, 1st field is alpha-numeric and 2nd is numeric.
Input file is ::
A_0 11
A_0 12
A_0 13
C_0 3
B_1 21
B_1 22
A_0 1
A_0 2
I want to sort this file, first based on 1st field, then on 2nd field
Output should be ::
A_0 1
A_0 2
A_0 11... (1 Reply)
Hi ,
I have following error files in /srv/trillium/Projects/SAS_AML/logs dir.
srtforpm_p3.err
tranfrmr_p1.err
tranfrmr_p9.err
winkey_p5.err
tranfrmr_p10.err
srtforrl_p15.err
tranfrmr_p6.err
srtforrl_p7.err
tranfrmr_p8.err
tranfrmr_p14.err
tranfrmr_p13.err
tranfrmr_p12.err... (3 Replies)
Discussion started by: sonu_pal
3 Replies
LEARN ABOUT CENTOS
grub2-mkimage
GRUB-MKIMAGE(1) General Commands Manual GRUB-MKIMAGE(1)NAME
grub-mkimage -- Make a bootable GRUB image.
SYNOPSIS
grub-mkimage [-c | --config=FILE] [-C | --compression=(xz,none,auto)]
[-d | --directory=DIR] [-k | --pubkey=FILE]
[-m | --memdisk=FILE] [-n | --note] [-o | --output=FILE]
[-O | --format=FORMAT] [-p | --prefix=DIR]
[-v | --verbose] MODULES
DESCRIPTION
grub-mkimage builds a bootable image of GRUB.
OPTIONS --config=FILE
Embed FILE as the image's initial configuration file.
--compression=(xz,none,auto)
Use one of xz, none, or auto as the compression method for the core image.
--directory=DIR
Use images and modules from DIR. The default value is /usr/lib/grub/<platform>.
--pubkey=FILE
Embed the public key FILE for signature checking.
--memdisk=FILE
Embed the memdisk image FILE. If no -p option is also specified, this implies -p (memdisk)/boot/grub.
--note Add a CHRP NOTE section. This option is only valid on IEEE1275 platforms.
--output=FILE
Write the generated file to FILE. The default is to write to standard output.
--format=FORMAT
Generate an image in the specified FORMAT. Valid values are:
i386-coreboot, i386-multiboot, i386-pc, i386-pc-pxe, i386-efi, i386-ieee1275, i386-qemu, x86_64-efi, mipsel-yeeloong-flash,
mipsel-fuloong2f-flash, mipself-loongson-elf, powerpc-ieee1275, sparc64-ieee1275-raw, sparc64-ieee1275-cdcore,
sparc64-ieee1275-aout, ia64-efi, mips-arc, mipsel-arc, mipsel-qemu_mips-elf, mips-qemu_mips-flash, mipsel-qemu_mips-flash, mips-
qemu_mips-elf
--prefix=DIR
Set prefix directory. The default value is /boot/grub.
--verbose
Print verbose messages.
MODULES
Include MODULES.
SEE ALSO
info grub
Wed Feb 26 2014 GRUB-MKIMAGE(1)