Programming :: How To Combine A And B To C

May 12, 2010

Code...

how to combine a and b to c

View 8 Replies


ADVERTISEMENT

Programming :: How To Combine ASM And C Code

Apr 10, 2010

I have a little test program consisting of a NASM source file and a C source file.How do I turn them into a single program?

Code:
section .data
msg db 'Hello, World!', 10

[code]....

View 14 Replies View Related

Programming :: Condense And Combine Two Log Files?

Jun 8, 2011

My backup script generates 2 lengthy log file. They have the same name, but the date is appended. I want to select the oldest one, condense it with "head" and "tail" and then append the condensed version of the newer one. They seem to get tangled up.Code:

ls `find . -iname "bak-log_*"` -1t | tail -1
and
ls `find . -iname "bak-log_*"` -rt | tail -1

[code]...

View 2 Replies View Related

Programming :: Korn - Combine Select With An Array?

Jun 8, 2010

Assume this array in Korn:

Code:
HOSTS[ home ]="163.164.165.166"
HOSTS[ work ]="122.123.124.125"

[code]....

View 3 Replies View Related

Programming :: Bash: Combine Arrays & Delete Duplicates?

May 23, 2011

I would like to combine two arrays and delete duplicates that might occur. I tried to solve it like this:

Code:
combined=( "${results1[@]}" "${results2[@]}" )
printf "${combined[@]}" | sort -n | uniq
Example:
result1 (4 elements):

[Code]....

In my code printf seems to have a problem with elements that have the same letters but a space inbetween. For instance "new foo", "newfoo" are the same for printf

View 5 Replies View Related

Programming :: Combine 40 Different Mount Points Into One Bytes Free/used Number?

Feb 18, 2011

We have a program that catalogs to 40 different mount points. The program is fine as long as thier is free space on at least one of the 40 mount points. My boss wants me to come up with a script that will email us daily to know how much overall free space is left. I know I can do a df but I don't know how to combine the 40 mount points into a single disk used/disk free report.

The 40 mount points are /dev/mapper/areaxx, xx being 01 to 40.

View 4 Replies View Related

Programming :: Shell Scripting: Trying To Combine Upload And Download Totals From Txt File By Ip Add

Sep 6, 2010

I have two files, uploads.txt and downloads.txt. I would like to combine the columns of these files based on the ip address. How can I best do this?

Uploads.txt Code: 192.168.0.147 1565369
192.168.0.13 1664855
192.168.0.6 1332868 Downloads.txt Code: 192.168.0.147 9838820

[code]...

View 7 Replies View Related

Programming :: Finding A Utility To Combine Two Or More Binary Files Into A Single Binary File?

May 5, 2011

Is there any Linux utility to combine two or more binary files into a single binary file ?

View 7 Replies View Related

Programming :: Combine CGI Script With A Bash Script ?

Feb 9, 2010

I have a fallowing CGI script, which does nothing more than prints out the values user inserted:

Code:

If I insert Martin to the name box and 192.168.1.1 to the IP box I get fallowing output:

Quote:

Name is Martin

IP address is 192.168.1.1

As you can see, script above works fine(I host this script in Apache server and use Firefox as a web-client). Now I made a fallowing bash script:

Code:

Which is started like this: ./script.sh Martin 192.168.1.1. Output is user name plus port numbers and descriptions. This bash script works fine as well

How can I combine those two scripts? I would like to insert name and IP to according boxes in Firefox and after clicking Generate button, user name plus list of port numbers and descriptions will appear in Firefox window instead of terminal emulator window

How to link/combine those two scripts to work together as one?

View 2 Replies View Related

Ubuntu Installation :: Combine SD Card And SSD?

Jul 26, 2010

I have an Acer Aspire One ZG5 running Ubuntu NBR 10.04 with an 8 GB SSD and an 8 GB SD card. Is there a way to combine the SD card and SSD so that Ubuntu sees it as one 16 GB drive. I currently have everything installed on the SSD.

View 8 Replies View Related

Ubuntu :: Combine The 3 Drives Under Extended

Aug 27, 2010

how would I combine the 3 drives under extended. Im have issues having no drive space. so I removed some old installations and re format them but I dont know how to combine them so that their under one /home

View 9 Replies View Related

Hardware :: Combine Multiple Computers Into 1 Box?

Dec 28, 2010

I have a very old machine running Linux (Fedora 12) with 2 harddrives and a DVD RW. I also have a newer Dell computer running XP. I would like to take the 2 harddrives and DVD RW from the older machine and put them into the available slots in the Dell computer and configure it for dual booting.

View 2 Replies View Related

Ubuntu :: Combine Columns In Text Files?

Feb 15, 2010

I have two files which I would like to combine. Each file has 2 columns.

File 1:
1 a
2 b

[code]...

View 2 Replies View Related

Ubuntu :: Combine MP3 Files Into A Single File?

Feb 28, 2010

I have an audiobook in 64 small mp3 files and I need them combined into a single file of any format in the proper order or order that I add them in. What program can I use?

View 9 Replies View Related

Ubuntu Multimedia :: Combine Two Videos Into One File?

Jun 28, 2010

I am trying to combine two videos into one file, so that I can have them playing side by side and in sync.Basically they are two angles of the same thing, and I want to be able to demonstrate both at once. The files are completely different formats right now (MPEG-2 and h.264), but I could convert them. Is there any way to do this, or a way I could have them both play in sync even if I can't combine them?

View 2 Replies View Related

Ubuntu Multimedia :: Join(combine) Two .ogv Files Into One?

Nov 27, 2010

How to use ffmpeg or memcoder to join two .ogv files into a single .ogv ??Let's suppose the first .ogv video file is named as "01.ogv" and the resolution is 800*600;the second .ogv video file is named as "02.ogv" and the resolution is 720*576.I'd love to join two video files into a whole one, with the resolution 320*240.

View 1 Replies View Related

Ubuntu :: Bash Script - Combine The Variable

Jul 23, 2011

Code:
#!/bin/bash
f1=apple
f2=banana
f3=grape
echo "Enter number 1,2 or 3:" # 3 is entered
read x
choice=${f+$x} # yielding choice=$f3
echo "$choice" # so $choice is, essentially, read as f3, which = grape

grape I am, essentially, trying to combine "f" and the number entered (3, for example) to create "f3", which when echoed as "$choice" will lead to grape!

View 8 Replies View Related

Red Hat / Fedora :: Compile Different Packages And Combine Them Into A Single Bin?

Dec 22, 2010

Here i have one situation, that is to compile 1.tar, 2.tar and 3.tar files and make them into a single bin file that is ready to install

View 5 Replies View Related

Networking :: Combine Two Network Pipes For MegaSpeed?

Apr 14, 2011

I have two sources of internet which I want to share and balance the load on. With one source it's easy: plug it into the wireless router and Bob's your uncle. But how would you handle two sources and get load balancing? A switch? Would that really share the load?

View 4 Replies View Related

General :: Combine Bash Scripting With Apache?

Apr 3, 2011

how to combine bash scripting with apache.

View 5 Replies View Related

General :: How To Combine Multiple Text Files

Mar 22, 2011

Combine multiple text files into one text file?

View 5 Replies View Related

Server :: Lvm Ontop Of Raid10 Or Combine Two Raid1 Via Lvm?

Sep 9, 2009

I'm planning to setup a ubuntu file server. I'll be using the 8.04LTS server edition. the system is probably going to have 4 harddrives. at the end they shall form an software RAID10 system. I'd like to use lvm at some point in order to able to make snapshots as I read through some mdadm and lvm docu/tutorials I could think of two possible setups:

in both cases:

small raid1 of 2 partitions that will form /boot
small raid1 of 2 different partitions as swap space

1. the rest will form 2 large raid1, which will be combined to a single virtual drive via lvm

2. make a raid10 out of the rest with mdadm, then make a lvm volume group just consisting of the 1 virtual raid0 device are there pros/cons for either solution? is lvm as powerfull as mdadm in striping? will the first solution produce less overhead?

View 3 Replies View Related

Fedora :: Extend Or Combine The 160gb And The 340gb Without Re-installing?

Apr 1, 2010

Is there a way to extend a partition?

I cloned from a 150 gb drive to a 500gb drive. It left a unused 340gb part.

When I load up the Disk Utility, I have the following:

214mb Linux Ext4
160gb LVM2
340gb uninitialized

Is there a way to extend or combine the 160gb and the 340gb without re-installing Fedora

View 4 Replies View Related

General :: Combine / Merge Left And Right Video Files?

Jan 11, 2011

How can I join the two parts of a stereoscopic movie to get a side-by-side one?

I can expand the left file, that way all I'll need is to paste the second one on top of it, with something like this:

mencoder left-file.mkv -o side-by-side.avi -oac copy -ovc lavc -of avi -vf scale=1280:720,expand=-1280:0:0:0 -sws 3 -lavcopts vbitrate=16000

Any idea which tool should I use on a Linux system?

View 1 Replies View Related

General :: Shell - Shellscript Combine All Files Without For Loop?

Jun 12, 2011

I have hundreds of files in one directory, is there a simple command or pipes of command I can use to append them together? I don't want to use any loops.

View 4 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

Ubuntu Installation :: Combine Multiple System Distributions?

Jun 28, 2010

How do you combine multiple Linux distributions live cd's or non install CD on one DVD or CD if your on Windows?
I would like to combine some minor Linux distributions: Gos and puppy acrade 6 and more on one DVD so I can spare money and place.

View 2 Replies View Related

Ubuntu :: Combine Multiple Commands In Sequence In Background?

Jul 26, 2010

I like background commands in scripts:

Code: sudo apt-get update& I also like multiple commands in scripts:
Code: sudo apt-get update && sudo apt-get upgrade

How would I combine these? Could I do it with functions?

View 9 Replies View Related

Ubuntu :: Combine Free Space Partitions - Drive

Feb 5, 2011

My machine is running Windows 7, but I've decided to dual-boot Ubuntu. I'm on the manual partitioning screen. Originally, the Windows drive took up the whole drive. I took 100 GB off of it to use as an Ubuntu drive. From that, I created the swap partition. Afterwards, I decided I wanted some more space for Ubuntu; so I took another 40 GB off of my Windows partition. Now I have 2 free space partitions. How can I combine them? It seems I'm only allowed to install Ubuntu on one or the other.

View 2 Replies View Related

Ubuntu :: Combine The 2 Additional Drives Into A RAID 1 Array?

May 11, 2011

I got my system up and running with the Grub installed on my primary hard drive. I have not installed 2 additional drives. I would like to combine the 2 additional drives into a RAID 1 array. I can only find tutorials on how to do this during initial install. I cannot find one that tell me how to do it after the install. Is there a way?

View 3 Replies View Related







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