10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 4000 files like
$cat clus_grp_seq10_g.phy
18 1002
anig_OJJ65951_1 ATGGTTTCGCAGCGTGATAGAGAATTGTTTAGGGATGATATTCGCTCGCGAGGAACGAAGCTCAATGCTGCCGAGCGCGAGAGTCTGCTAAGGCCATATCTGCCAGATCCGTCTGACCTTCCACGCAGGCCACTTCAGCGGCGCAAGAAGGTTCCTCG
aver_OOF92921_1 ... (1 Reply)
Discussion started by: sammy777888
1 Replies
2. Shell Programming and Scripting
Hello Gurus,
I have a multiple pipe separated files which have records going over multiple Lines. End of line separator is \n and records going over multiple lines have <CR> as separator. below is example from one file.
1|ABC DEF|100|10
2|PQ
RS
T|200|20
3| UVWXYZ|300|30
4| GHIJKL|400|40... (7 Replies)
Discussion started by: dJHa
7 Replies
3. Shell Programming and Scripting
Hi All,
I want to use egrep on multiple files and the results should be output to multiple files. I am using the below code in my shell script(working in Ksh shell). However with this code I am not attaining the desired results.
#!/bin/ksh
(
a="/path/file1"
b="path/file2"
for file in... (4 Replies)
Discussion started by: am24
4 Replies
4. Shell Programming and Scripting
Dear All,
I am trying to write a Unix Script which fires a sql query. The output of the sql query gives multiple rows. Each row should be saved in a separate Unix File.
The number of rows of sql output can be variable. I am able save all the rows in one file but in separate files.
Any... (14 Replies)
Discussion started by: Rahul_Bhasin
14 Replies
5. Shell Programming and Scripting
How can I Run one script on multiple files and print out multiple files.
FOR EXAMPLE
i want to run script.pl on 100 files named 1.txt ....100.txt under same directory and print out corresponding file 1.gff ....100.gff.THANKS (4 Replies)
Discussion started by: grace_shen
4 Replies
6. UNIX for Dummies Questions & Answers
How can I run the following command on multiple files and print out the corresponding multiple files.
perl script.pl genome.gff 1.txt > 1.gff
However, there are multiples files of 1.txt, from 1----100.txt
Thank you so much.
No duplicate posting! Continue here. (0 Replies)
Discussion started by: grace_shen
0 Replies
7. Shell Programming and Scripting
I have roughly ~30 .txt files in a directory which all have unique names. These files all contain text arranged in columns separated by whitespace (example file:
[#YY MM DD hh mm WDIR WSPD GST WVHT DPD APD MWD PRES ATMP WTMP DEWP VIS TIDE
#yr mo dy hr mn degT m/s m/s m sec ... (5 Replies)
Discussion started by: aozgaa
5 Replies
8. Shell Programming and Scripting
Hi!
I'm new in awk and I need some help.
I have a folder with a lot of files and I need that awk do something in each file and print a new file with the output. The input file name should be modified when I print the outpu files.
Thanks in advance for help!
:-)
ciao (5 Replies)
Discussion started by: gabrysfe
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies
10. UNIX for Advanced & Expert Users
Hi
I am new to this forum. Iam facing very strange problem in sco open server 5. when i try to mount the fd0 it just says "fd0 writeprotected, read only error code 30"
I changed the floppy drive. even I check the /dev/fd0 permissions it is read and wirte. I changed the floppies also. but... (6 Replies)
Discussion started by: Pritpal singh
6 Replies
GENROMFS(8) System Manager's Manual GENROMFS(8)
NAME
genromfs - create a romfs image
SYNOPSIS
genromfs -f device [ -d source ] [ -V volumename ] [ -a alignment ] [ -A alignment,pattern ] [ -v ]
DESCRIPTION
genromfs is used to create a romfs file system image, usually directly on a block device, or for test purposes, in a plain file. It is the
mkfs equivalent of other filesystems.
genromfs will scan the current directory and its subdirectories, build a romfs image from the files found, and output it to the file or
device you specified.
OPTIONS
-f output
Specifies the file to output the image to. It must be specified.
-d source
Use the specified directory as the source, not the current directory.
-V volumename
Build the image with the specified volume name. Currently it is not used by the kernel, but it will be recorded in the image.
-a alignment
Align regular files to alignment bytes. genromfs will align data of each regular file in the resulting image to the specified
alignment, while keeping the image compatible with the original romfs definition (by adding pad bytes between last node before the
file and file's header). By default, genromfs will guarantee only an alignment of 16 bytes.
-A alignment,pattern
Align objects matching shell wildcard pattern to alignment bytes. If one object matches more patterns, then the highest alignment
is chosen. Alignment has to be a power of two. Patterns either don't contain any slashes, in which case files matching those pat-
terns are matched in all directories, or start with a leading slash, in which case they are matched against absolute paths inside of
the romfs filesystem (that is, as if you chrooted into the rom filesystem).
-v Verbose operation, genromfs will print every file which are included in the image, along with its offset.
EXAMPLES
genromfs -d root -f /dev/fd0 -V 'Secret labs install disk'
All files in the root directory will be written to /dev/fd0 as a new romfs filesystem image.
genromfs -d root -f /dev/fd0 -A 2048,/.. -A '4096,*.boot' -a 512 -V 'Bootable floppy'
Generate the image and place file data of all regular files on 512 bytes boundaries or on 4K boundaries, if they have the .boot extension.
Also, align the root directories '..' romfs header on 2K boundary.
You can use the generated image (if you have the romfs module loaded, or compiled into the kernel) via:
mount -t romfs /dev/fd0 /mnt
AUTHOR
This manual page was initially written by Christoph Lameter <clameter@debian.org>, for the Debian GNU/Linux system.
SEE ALSO
mkfs(8), mount(8), mkisofs(8)
Version 0.3 Sep 1998 GENROMFS(8)