General :: Split A File, Byte-wise, Not Character-wise?

Nov 17, 2010

I want to split file foo into two parts, and I only intersted in the first one. But the N bytes in which the first part consists, I want it to be an exact replica of the corresponding bytes of foo. More exactly:

Code:
foo foo1 foo2
==============================
90 90 05

[code]....

View 4 Replies


ADVERTISEMENT

Security :: How To Block Site In Firewall Or Router By Protocol Wise & Host Wise?

Jun 24, 2009

I would like to know the blocking methode In a Firewall or a Router.whether i will be done by Protocol wise, ho? or it will done through Host wise, How ?

View 2 Replies View Related

Programming :: Shell Script Comparison For Two File(text) Character Wise?

Mar 1, 2010

I need to write a shell script which can compare two files(text files) character wise. eg. underscore is space.

------FILE 1---------------
A_B_C
D_E_F
G_H_I

[code].....

Actual problem: I need to write a shell script which can give me difference character by character not by line (using comm)

View 4 Replies View Related

General :: How To Change Same File Names Directory Wise

Apr 9, 2010

I have a problem with file names changes. I have a hundred of file with same names and different subdirectories. I want to change that file names by their subdirectery names.

Currently is:
file name------------------------subdirectory name
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000049.h23v03.005.dir
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000065.h23v03.005.dir
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000081.h23v03.005.dir
...

I want to
MOD13A2.A2000049.h23v03.005.img
MOD13A2.A2000065.h23v03.005.img
MOD13A2.A2000081.h23v03.005.img

View 3 Replies View Related

General :: Combine Two Files Column-wise In Ubuntu?

Jul 7, 2011

I have two files: one is like

preface
Introduction
chapter 1
the other is like
1
2
3

I was wondering how to column-wise combine the two files into one:

preface 1
Introduction 2
chapter 1 3

by using some utilities, such as awk, sed, available in Ubuntu?

View 1 Replies View Related

Debian :: Is It Wise To Mix Squeeze Stable With Sid Packages?

Feb 17, 2011

Is it wise to mix Squeeze stable with sid packages?Or is it better to install squeze testing and mix testing with sid?

View 5 Replies View Related

OpenSUSE Install :: Set System-Wise Environment Variables ?

Sep 9, 2010

I just recently reinstalled openSUSE 11.3 last night with the GNOME desktop. Since I'm starting fresh again, I'd like to set up my System as flawless as possible.

So, my question is stated in the Title. How do you set System-Wide environment variables on OpenSUSE 11.3 // GNOME? I usually set them by adding an export to my ~/.bashrc, but I remember in Ubuntu that I could add them to /etc/environment. I checked that file out on my system, and it has a the default comment on it stating:

"This file is parsed by pam_env module...Syntax: simple "KEY=VAL" pairs on seperate lines"

This seems to be the spot to add my "export JAVA_HOME=/usr/java/..etc", etc. but I wanted to clarify before I went ahead and made any changes.

View 9 Replies View Related

Installation :: Start From Scratch Step Wise Partitioning 300 GB HDD For Kubuntu Only?

Nov 6, 2010

How to start from scratch step wise, partitioning a 300 GB HDD for Kubuntu only.

Number, types, sizes, etc of partitions?

View 7 Replies View Related

Ubuntu Multimedia :: 10.04 - Any Way To Sort Rhythmbox By Album (Year Wise)

Feb 3, 2011

I just migrated to Ubuntu 10.04 from windows and I could not be more satisfied, except for one minor, nitpicky detail. In iTunes I was able to sort my music by "album by year". That is, my music was sorted primarily by artist, then by album year. So each artist had their albums listed in chronological order. My library is meticulously tagged, so every track on every album is tagged with the same YEAR value. Is this possible in Rhythmbox? Is there a plugin or will i have to edit a .conf file (or similar) somewhere? I'm new to Ubuntu, but not afraid of getting my hands a bit dirty, so to speak.

View 1 Replies View Related

Ubuntu :: 10.10 Installed With WISE In Windows7 RAID0 - Root Filesystem Not Defined

Oct 25, 2010

i have a M1730 with 2 HD in RAID 0. Windows 7 64bit installed. I tried to install Ubuntu 10.10 with WUBI, all ok the installation in Windows. Restarted the system I have 2 multiboot options with the new Ubuntu... it starts but in graphic mode it tries to finish the installation and stops with an error message like that: "root filesystem not defined...".The problem is the raid0 of my disks or other?

View 5 Replies View Related

Ubuntu :: Resource Usage Requirements For Xubuntu + Kdevelop Memory Wise And Processor?

Mar 14, 2010

Can anybody suggest what are the resource usage requirements for xubuntu + kdevelop memory wise and processor.

as i am looking for installing in this system xubuntu + kdevelop on a system p4+ 256MB ddr1

do you think this will smooth

View 1 Replies View Related

Ubuntu Networking :: Application To Monitor Application Wise Network Usage?

Feb 17, 2010

application to monitor application wise network usage?

View 3 Replies View Related

General :: Use The Man / Info / Apropos Pages - Character Instructed The Shell To Interpret A Special Character As An Ordinary Character?

Mar 27, 2010

1.What character instructd the shell to interpret a special character as an ordinary character?

2.What directory contains some of the utilities available on the system in the form of binary files?

3. What command is used to search the location of a utility?

4. What command is used to instruct the editor to write the file and quit the editor?

5. What key quits the more utility and displays the shell prompt?

6. What command starts a child shell as the super user, taking on root's identity and environment?

7. Which wildcard characters can be used for searching all the files in the system that start with "A"?

8. The user name or login name of the super user is????

[Code]....

View 10 Replies View Related

General :: Recreating A Column Byte-based File?

Nov 5, 2009

I have a file that stores employee login IDs, names, types, and permissions. Our software reads the information based on byte-columns, so it reads a column as any ASCII character (spaces, letters, numbers, punctuation, etc.). I want to create a web-interface for adding and removing users, and storing the data in a MySQL database. However, if I am creating the files from the MySQL output, I need a way to write to specific column locations in the file ...

User ID: Columns 1-4
User Name: Columns 6-30
Type: 32-40
Permissions: 42-45

I want to use a scripting language, preferably C-Shell, to call MySQL for the data and write the data to the correct columns of the file. I wrote a script that takes the data from the file, and dumps it into the MySQL table, so maybe I can pad the remaining space in the table column to fill with spaces ...

View 12 Replies View Related

Programming :: Memcpy Fails To Copy Data / But Byte By Byte Assignment Work

Jul 6, 2011

I got across a peculiar problem with memcpy.History:writing a code which do flash/Read functionality for SPI Parts.

Implementation:
1.memory map the Flash chip registers to userspace. - fine
2.Issue block read command
3.Just print the data I got, using the memory mapped address - fine I got the correct data.
4.Copy the data to a local buffer from memory mapped address using memcpy - FAIL

UPDATE:
on SUSE 11.3 -32 bit the above code worked perfectly, but on SUSE 11.4 - 64bit , Ubantu, Fedora it failed.
I am using gcc compiler obviously. I am using i386/x86_64 OS. Processor: Intel core 2 duo, SNB after step 4 , when I dump the data from local buffer every thing is FF.But step 4, if i implement byte by byte copy using assignment operator, it worked.is there any known bug with memcpy? am I missing anything?

View 7 Replies View Related

Software :: Split A File, Without Using 'split'?

May 20, 2011

Im in a unique situation where a box has a 400G file, on FreeBSD, without thesplit' utility available

View 11 Replies View Related

General :: Split A 7 GB .VOB File For DVD Authoring?

Jan 13, 2011

I have a 7 GB VOB file which I created from a DVD using ffmpeg dump to remove CSS protection (it is legal where I live to do so). Now, I want to create a DVD/.iso that will be understood by regular DVD players/appliances. How do I do it?

View 1 Replies View Related

General :: Split A File Into Multiple Files Using AWK?

Aug 5, 2010

I have a file with 5 columns. Column 4 contains numbers.Is it possible to split the file into multiple files using a condition for the contents of column 4 i.e if column 4 contains a value between 0-10 then print the lines to a new file called less_than_10.txt

View 1 Replies View Related

General :: Split A File Into Two - The First Being The First Two Lines And The Second The Rest?

Nov 1, 2010

I'd like to split a file into two, where the first file is the first two lines and the second is the remaining lines (third line to EOF).

View 2 Replies View Related

General :: Split A Video File Into Smaller Chunks?

Sep 1, 2011

Tool like Media File Segmenter for Linux

I know that one can use ffmpeg to extract a smallfile.avi from a largfile.avi. But What I am looking for is an tool/command to split a large file into several files of a given size.

View 1 Replies View Related

Slackware :: Searching A Byte Sequence Within A File?

Dec 11, 2010

Code:dd if=/dev/sda bs=1 count=2048 of=johnIs there a linux tool to search for a sequence of bytes within john? E.g., to look for 0x6a84b5fe78 ?

View 6 Replies View Related

General :: Change File Character Set?

Aug 9, 2010

I would like to know how I can change a file so it has the same character encoding as files saved as comma separated csv files from Microsoft Excel.

I have tried using iconv to do this. code...

View 5 Replies View Related

General :: Split Huge File Into Small Parts And Compress Them?

May 30, 2011

I've a file with a size of 6GB. I would like to compress this file and split them into smaller files. I was also thinking in use bzip2 to compress it, because if offers a good compression rate. How can I split this file into small ones to compress it?

View 5 Replies View Related

General :: Installation Utilities Split Root File System

Jan 21, 2011

standard Linux installation utilities split the root file-system and the home file-system on two separate but relatively equal-sized partitions? For example, when I put fedora on an 80GB disk, it automatically gave the root file-system 32GB and home 30GB and the swap 8GB of space. However, since my home file-system has a directory with 28GB of files in it, why is my root file-system reading 100% usage? Is the home FS overlaid on top of the root FS? Is there an advantage to doing this? I just made a boot partition (50mb or so), a root partition (90% of the disk space) and a swap (4%-5% disk space).

View 5 Replies View Related

General :: Split A Large File To Download On A Windows Machine?

Apr 16, 2011

I am removing some old graphics from my server and one of the gallery programs have created two enormous directories that I cannot even open with FTP.

I tried to tar each directory and the first came out to about 37gb and the second keeps failing (its bigger one would assume).

How can I archive and split these into smaller files?

View 13 Replies View Related

General :: Remove Abnormal Character DEL From A File Name?

Jul 22, 2011

I have got certain files which somehow contain abnormal character "Del" "0x7f" or 177 which represents Del. And this is causing SVN to reject these files and abruptly end the process. I need to remove those characters from the file names but am not able to. find or grep do not search the files. This is how the file looks like with ls or find code...

View 3 Replies View Related

General :: Split Large File And Transfer To Windows External Drive?

May 17, 2011

How does one split a large linux file and transfer to windows external drive ?

View 2 Replies View Related

General :: Tool To Convert A File Of HEX To ASCII Character Set?

Feb 10, 2011

Is there a known tool to convert a file consisting of 2 byte Hex into ascii?

Note: - Maintain file offset listing in bytes code...

View 3 Replies View Related

General :: How To Ignore Rows With Specific Character In Csv File?

Mar 11, 2010

I have a csv file that has around 3 million rows. I want to process this file so that it creates a new file that contains only the rows that have 2 characters or less in the first column column.At the moment i am using SQL Loader but its taking too long so im wondering whether this would be easier if done in Unix?

View 8 Replies View Related

General :: Split A Gzip File Based On Size And Have A Prefix Without Changing Extension?

Jan 18, 2010

have a gzip file ABC_000023232.gzipBCD_023232032.gzipI want to split these files into smaller files but keep the extension same because I am using this as a variable in a script

Code:
for i in `ls *.gzip`
split -b 500K $i $i

[code]...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved