Hi,I have a single sql file containing many create table ddl's.Example:
CREATE TABLE sec_afs
(
rpt_per_typ_c char(1) NOT NULL,
rpt_per_typ_t varchar(20) NULL,
LOCK ALLPAGES
go
EXEC sp_primarykey 'sec_afs', rpt_per_typ_c
go
GRANT SELECT ON sec_afs TO developer_read_only... (5 Replies)
Dear All,
I would like to split a file of the following format into multiple files based on the number in the 6th column (numbers 1, 2, 3...):
ATOM 1 N GLY A 1 -3.198 27.537 -5.958 1.00 0.00 N
ATOM 2 CA GLY A 1 -2.199 28.399 -6.617 1.00 0.00 ... (3 Replies)
Let's assume that I have a file name called ‘A' and it has 100 lines in it and would like to split these 100 lines into 4 files as specified bellow.
INPUT: Input file name A
1
2
3
4
5
6
7
8
9
........100
Output: 4 output files (x,y,z,w)
File x should contains (Skip 4 lines)... (15 Replies)
Hello, I am using awk to split a file into multiple files using command:
nawk '{
if ( $1 == "<process" )
{
n=split($2, arr, "\"");
file=arr
}
print > file }' processes.xml
<process name="Process1.process">
... (3 Replies)
Hi,
I've one requirement. I have to split one comma delimited file into multiple files based on one of the column values.
How can I achieve this Unix
Here is the sample data. In this case I have split the files based on date column(c4)
Input file
c1,c2,c3,c4,c5... (1 Reply)
I have one single shown below and I need to break each ST|850 & SE to separate file using unix script. Below example should create 3 files. We can use ST & SE to filter as these field names will remain same.
Please advice with the unix code.
ST|850
BEG|PO|1234
LIN|1|23
SE|4
ST|850... (3 Replies)
So I have a space delimited file that I'd like to split into multiple files based on multiple column values.
This is what my data looks like
1bc9A02 1 10 1000 FTDLNLVQALRQFLWSFRLPGEAQKIDRMMEAFAQRYCQCNNGVFQSTDTCYVLSFAIIMLNTSLHNPNVKDKPTVERFIAMNRGINDGGDLPEELLRNLYESIKNEPFKIPELEHHHHHH
1ku1A02 1 10... (9 Replies)
I have a requirement to split a huge file to smaller text files based on first four characters which look like
ABCD
1234
DFGH
RREX
:
:
:
:
:
0000
Each of these records are OF EQUAL bytes with a different internal layout based on the above first digit identifier..
Any help to start... (5 Replies)
I am using below code to split files based on blank lines but it does not work.
awk 'BEGIN{i=0}{RS="";}{x="F"++i;}{print > x;}'
Your help would be highly appreciated
find attachment of sample.txt file (2 Replies)
Discussion started by: imranrasheedamu
2 Replies
LEARN ABOUT CENTOS
unsquashfs
UNSQUASHFS(1) uncompress squashfs filesystems UNSQUASHFS(1)NAME
mksquashfs - tool to uncompress squashfs filesystems
SYNOPSIS
unsquashfs [OPTIONS] FILESYSTEM [directories or files to extract]
DESCRIPTION
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib compression to compress both files, inodes and directories.
Inodes in the system are very small and all blocks are packed to minimize data overhead. Block sizes greater than 4K are supported up to a
maximum of 64K.
Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in con-
strained block device/memory systems (e.g. embedded systems) where low overhead is needed.
OPTIONS -v, -version
print version, licence and copyright information.
-d PATHNAME, -dest PATHNAME
unsquash to PATHNAME, default "squashfs-root".
-n, -no-progress
don't display the progress bar.
-no, -no-xattrs
don't extract xattrs in file system.
-x, -xattrs
extract xattrs in file system (default).
-p NUMBER, -processors NUMBER
use NUMBER processors. By default will use number of processors available.
-i, -info
print files as they are unsquashed.
-li, -linfo
print files as they are unsquashed with file attributes (like ls -l output).
-l, -ls
list filesystem, but don't unsquash.
-ll, -lls
list filesystem with file attributes (like ls -l output), but don't unsquash.
-f, -force
if file already exists then overwrite.
-s, -stat
display filesystem superblock information.
-e EXTRACT_FILE, -ef EXTRACT_FILE
list of directories or files to extract. One per line.
-da SIZE, -data-queue SIZE
Set data queue to SIZE Mbytes. Default 256 Mbytes.
-fr SIZE, -frag-queue SIZE
Set fragment queue to SIZE Mbytes. Default 256 Mbytes.
-r, -regex
treat extract names as POSIX regular expressions rather than use the default shell wildcard expansion (globbing).
Decompressors available
gzip
lzo
xz
SEE ALSO mksquashfs(1)HOMEPAGE
More information about unsquashfs and the squashfs filesystem can be found at <http://squashfs.sourceforge.net/>.
AUTHOR
squashfs was written by Phillip Lougher <plougher@users.sourceforge.net>.
This manual page was written by Daniel Baumann <daniel.baumann@progress-technologies.net>.
4.2 2012-06-30 UNSQUASHFS(1)