General :: Merge Lists With Common Heads/tails?
Sep 5, 2010
My question is probably better explained by example; I have two files that look like this:
Code:
$ cat file1.txt
mercury
venus
earth
mars
[Code]....
The general stipulations are as you'd expect; both files are of an arbitrary length, generally file1 will be larger than file2 but this is not guaranteed, the common lines (if any) will always be contiguous and only occur at the end of file1 and the start of file2.
View 14 Replies
ADVERTISEMENT
Jun 4, 2011
I have installed php 5.3.6-4 on centOS 5.6. When i try to install some modules of php then it gives an error
php53-common-5.3.3-1.el5_6.1.i386 from updates has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
[code]....
I have reinstall it twice but each time i get same error.
View 6 Replies
View Related
Feb 22, 2011
I am using ffmpeg for merge wav files to a mov video. My doing is below
1. First extract audio (wav file) from video
2. Create wav file from mp3 track 1
3. Create wav file from mp3 track 2
4 Merge extract audio from video with track 1 and track2.
Now finally create a new video with original video's video stream and merged audio stream.
Process is working. However final video is 3-4 times greater than original one. I want that final video should be near about size of original video. As I understand, all three wav files (created from ) make video larger.
Example commands i using is as below:
View 6 Replies
View Related
Aug 30, 2010
I have a Brother MFC-665CW printer and finally got it connected via wireless. I always unplug my printer when I am not using it. But every time I plug it back in and print something, it always do a cleaning of the printer heads before printing.
System stats:
Running: Ubuntu 10.04 32 bit
What else should I add to the system stats?
View 2 Replies
View Related
Mar 23, 2011
Is there a command to explicitly park the heads of a particular hard drive?
I have a hot swap tray and want to issue commands to sync and park heads before removal.
View 1 Replies
View Related
Apr 8, 2011
I've noticed since day one of installing openSUSE that my hard drive makes faint clicking noises quite frequently. At first I thought my drive was bad but after doing an extensive SMART diagnostics test (Passed) and researching on internet I've found that the clicking is actually the heads of my hard drive being put to the rest position via openSUSE's power management. I've confirmed this because if I run this command:
Code:
sudo /sbin/hdparm -B 254 /dev/sda
My hard drive will no longer make any noises and will run silently until the next reboot, as it keeps the hard drive spinning constantly. I'm basically asking (Because I'm paranoid) if the frequent hard drive head movement will reduce the hard drive's life span? I want to find out because I recently upgraded from a 160 GB 5400 rpm WD Scorpio Blue hard drive to a 500 GB 7200 rpm WD Scorpio Black. My old hard drive did not make as nearly as much clicking noises as my new one does, but the clicking can also be heard in Windows (Though not as frequent).
View 7 Replies
View Related
Jul 23, 2011
Searching Google on how to join/merge many mp3 files, it suggests that I should just cat them together.That might "work", but clearly it is not the correct way to do it, as each header and set of IDv3 tags will also be concatenated.Does a Linux program exist that can be scripted to join/merge many mp3?Can mplayer/mencoder/ffmpeg do it?
View 2 Replies
View Related
Jun 1, 2010
i have 2 file and want to merge them in the first one. the first file is like this:
2 word1
1 word2
6 word3
2 word4
......
the second:
word1 :file1 :file2
word2 :file6
word3 :file1 :file2 :file2 :..up to file6
word4 :file7 :file1
.......
So i want to ADD all those File fiels Wich have different FN for every record.
View 8 Replies
View Related
Oct 4, 2010
rpm -qa --last lists all rpm with date and time. But I want to sort the list by date, with earlier rpm displayed first. So it needs pipe, rpm -qa --last |
View 2 Replies
View Related
May 25, 2010
I have a linux hard drive with three areas:
/dev/hda1 - ext3 boot partition (20 MB)
/dev/hda2 - lvm2 main partition (6 GB)
unpartitioned space - 12 GB
I would like to merge the unpartitioned space into the lvm2 partition known as /dev/hda2. I tried using GParted, but it does not support lvm2. What commands or utilities could I use to add the unpartitioned space to hda2 without losing my existing data?
View 3 Replies
View Related
Jul 20, 2011
I'm installing Windows to update my BIOS. I've removed a previous partition but I can't merge free partition to my original partition containing data. How to solve this problem? I don't want to format the ext4 partition.
View 1 Replies
View Related
Aug 7, 2009
I have three hard drives in my computer That I want to make RAID 0. All of them already have partitions and data on them. What I want to know is if I can, without losing data, add the disks to RAID and then merge the partitions? All the partitions are of the same type. Or would it easier/better/possible to do this with LVM? Even if I'd have to shrink partitions and copy data to a new LVM one to get it set up properly, would it be better than RAID 0?
View 2 Replies
View Related
May 4, 2011
Is that possible to merge the 2 ext3 partitions without moving data in the old partitions? What i did was, i created new partition say /dev/hda8, which is to be merged to some old partition say /dev/hda3.
View 3 Replies
View Related
Feb 19, 2010
how do i merge two partitions in my harddisk!!! i am using kubuntu 9.10 and also how do i disable KTTSD!!
View 3 Replies
View Related
Dec 20, 2010
I want to merge columns (selectively) from several files and create a new file with the merge output. I saw some suggestions to use pr/paste to join the columns and then awk to pick-up the columns.
Code:
pr -m -t -s file1 file2 | gawk '{print $4,$5,$6,$1}'
But I have hundreds of files and I cannot manually pick up columns using awk as given in
[code]....
View 14 Replies
View Related
Mar 23, 2010
how I can merge the data from file1(data per line) to the end of line of file2. So what I mean is, I want to add every line from file1 to the end of the corresponding line of file2.
View 2 Replies
View Related
Apr 13, 2011
1. Is there an easy way to combine pdf files not only one "after" the other, but also one "next to" the other? For example, If I have one-page files called a1.pdf, a2.pdf, a3.pdf, a4.pdf, b1.pdf, b2.pdf, b3.pdf, b4.pdf, c1.pdf, c2.pdf, c3.pdf, c4.pdf, I want to combined them so that I can scroll down from a to c and scroll right from 1 to 4. That is, I want to merge them in "matrix form". If I zoom out the final file should look like:
a1 a2 a3 a4
b1 b2 b3 b4
c1 c2 c3 c4
(TWELVE pages in total)
Is this possible? I tried Google but found no information.
2. Also, is it possible to just put all of them together in a single page. If I zoom out the page should look like:
a1a2a3a4
b1b2b3b4
c1c2c3c4
(ONE page in total)
Note: I would like to do this for many one-page files
View 1 Replies
View Related
Mar 3, 2011
does any linux admins out there have any mailing lists that they subscribe to? I go to lots of sites for knowledge but i was trying to put together the double whammy and pull together a solid mailing list for linux admins as well.
View 6 Replies
View Related
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
Oct 4, 2010
I have a folder with hundreds of .txt files (logs of some java application) that I have to merge in to one single .txt file. This application produces a new log file everyday:
day1: logFriday10September2010.txt
day2: logSaturday11September2010.txt
...
day8: logFriday17September2010.txt
...
and so on...
I could merge the files easily with "cat" and ">>" however, the problem is that I have to do it by taking into account the date (creation or modification) of the file.
If I simple use the cat command the output file will receive for example, all Fridays in a row, then all Saturdays, etc. and in that way I'm not considering the date.
I've searched for the options of the find command, since the files after creation are not modified...I try to use this for example:
$ find . -newer <some old file>
but that lists me all files after that <old file> and not by correct date.
View 5 Replies
View Related
Feb 12, 2010
Amarok is nice, and currently the only thing I've tried that will actually play audio from network shares and not lock up. Only problem is that it doesn't seem to list my library by directory/folder structure.. only album/artist/genre or some variation thereof. Is there anything that does list by folder structure?
View 3 Replies
View Related
Feb 7, 2011
Which commands lists your outstanding print jobs?
View 3 Replies
View Related
Jan 30, 2011
how to create a mailing list using the 'newlist' command in /var/local/mailman/. I sucessfully create the list and i receive a confirmation message but after adding members to the list, none of them receives mail sent to list.
View 1 Replies
View Related
Jan 1, 2010
I have a standalone system which dual-boots Linux and Windows.The trouble is that the Linux filesystem is separate and the Windows filesystem is separate. there a way to have a folder in which I can store files which I can access whenI'm in Linux as well as in Windows?
View 11 Replies
View Related
Oct 29, 2009
I am new to linux, I would like to know the commonly used keyboard shortcuts. I want to get familiar from the basics.
View 8 Replies
View Related
Dec 23, 2010
Referencing a previous thread in which a similar problem exists:[URL]Currently I am using grep -ivf a.txt b.txt > c.txt to get what I need.
a.txt:
user1@domain.com
uSer2@domain.com
[code]....
View 1 Replies
View Related
Feb 4, 2010
After upgrade from MDV 2009.1 to MDV 2010 a bunch of available kernels that can be selected are listed at boot. I think that these are still installed but I really don't need them listed. I would like to get rid of the list of extras. I've had a look at /boot/grub but I can't figure out what.
View 11 Replies
View Related
Apr 21, 2011
I am writing a script to install a program (a GUI interface) and would like to search if the required software is already installed. This made me think of the command whereis. I was curious how the command whereis is working but didn't know where to search. Is it equivalent with a find at the most common locations?
View 6 Replies
View Related
Apr 5, 2010
I can no longer update Fedora because it fails and hangs on trying to update package "transmission-gtk" due to a dependency "transmission-common" whose source cannot be found. How do I fix this and how can linux update break itself so badly that it adds dependencies to itself without checking for their sources first?
View 5 Replies
View Related
Dec 18, 2010
I recently finished installing Fedora 9 on a Prolient ML 330 G6 Server, but i configured the SATA hard drives to be viewed as four seperate hard drives. I was asked to merge the drives to be seen as one 800GB hard drive, my biggest fear is that we had set up Samba to share folders between fedora 9 giving specific users access to specific files saved on the Prolient server, will those settings be lost.And could you call that a File Server or do you have to enter any more settings And also if anyone could point me to a tutorial on Logical Volume Management and Raid specifically for fedora 9
View 10 Replies
View Related