Programming :: Renaming / Overlapping Directory Of "sequences"?
May 17, 2011
renaming my directory My current path is /sequences/proteins/sequences/original_sequences and i would like to drop the second directory of "sequences" and would like it as /sequences/proteins/original_sequences
View 4 Replies
ADVERTISEMENT
Mar 18, 2011
I want to send Epson ESC sequences to control the printer from terminal.
I figured out if I send
Quote:
echo $FF>/dev/lp0
that is equal to sending 'FF' control sequence. But I have problem when I need to send sequences like,
1. ESC 0 . I sent
Quote:
echo $ESC $0>/dev/lp0
,
Quote:
echo $"ESC 0">/dev/lp0
. They do not work as expected.
2. ESC HT 5 4 (To control Horizontal Tabbing)
How can it be done in bash?
View 4 Replies
View Related
Apr 27, 2011
I have to write a code that converts a sequence of 1's and 0's(block) into their equivalent hexa number and copying to another array(byte). but this sequence is not always of length 8 and you are required to send strlen(sequence)%8 bits back into the string. So i've written down this code and it works well with the sample input but fails in the real program.
Code:
int Convert_encode( char * block,unsigned char * byte)
{
int len,iter,i,j,k,sum;
char * temp=(char *)malloc(4*sizeof(char));
len=strlen(block)/8;
[code]....
View 7 Replies
View Related
Dec 11, 2010
I run a script which generated about 10k files in a directory. I just discovered that there is a bug in the script which causes some filenames to have a carriage return (presumably a '' character).
I want to run a sed command to remove the carriage return from the filenames.
Anyone knows which params to pass to sed to clean up the filenames in the manner described?
I am running on Linux (Ubuntu)
The character causing the filename to 'break up' accross multiple lines appear to be a CR (carriage return) instead of ' '. The filename is being diaplayed in thetitle of a text editor with %0D in the positions of where the file name breaks up. So I need to remove the CR chars from my filenames.
View 1 Replies
View Related
Mar 20, 2011
I messed up the whole thing and the settings. Created some new thing named rhk which I can't remember as it got all messed up and Now I am getting nothing after Linux Mint 10(julia) boots up - no start menu, no panel, no taskbar nothing. I tried to work in the recovery mode and got some(downloaded) 216mb of something(in the repair broken packages). Moreover whenver I have booted in it shows messages like Could not update ICEauthority file /home/rk./.ICEauthority
there is a problem with the configuration server. (usr/lib/libconfig24/gconfsanitycheck2 exited with status 256) The panel encountered a problem while loading "OAFIID: NOME_mintMenu" The panel encountered a problem while loading "OAFIID: GNOME_IndicatorApplet" Naulitis could not create the following reqiured folders: /home/rk/Desktop, /home/rk/. Naulitis Moreover Alt+F2 gives Run application or run with file and nothing seems to be working.
View 2 Replies
View Related
May 22, 2010
how can I rename all files in a directory up to the first dot (there by leaving the file extension alone) to the same thing? Im trying to rename all my media files and associated files in a directory to (preferably) the name of the directory it self. if I have
Code:
A Clockwork Orange -
wzzyfg.cd1.avi
wzzyfg.cd2.avi
wzzyfg.nfo
ACO.fanart.jpg
orange.tbn
Id like to automatically mass rename them all to
Code:
A Clockwork Orange
A Clockwork Orange.cd1.avi
A Clockwork Orange.cd2.avi
A Clockwork Orange.nfo
A Clockwork Orange.fanart.jpg
A Clockwork Orange.tbn
I have rename on my server which I used to remove underscores from file names, but I dont know how I would use it to rename everything up to the first period. Bonus points for renaming stuff to the name of the parent folder!
View 5 Replies
View Related
Apr 1, 2010
I'm trying to rename a lot of files getting rid of the space on the names. For that purpose I wrote this very simple bash script, but for some reason is not working.
Code:
for i in "$(ls)"
do
j=$(echo "$i" | sed 's/ /_/g')
mv "$i" "$j"
done But what I get in return for each line is just one long file name with all the file names concatenated. I've tried with echo -e "$i" as well with no results. This has to be something really simple that I'm missing but I just can't see it.
View 11 Replies
View Related
Jul 19, 2010
I have a bunch of files that I need to rename, ordinarily this is pretty easy task. The problem here is that the file names have Chinese / Japanese characters. ie [$$$$$$$$].SOMETHING BLAH BLAH.ext Where all the "$$$$" are insert Chinese characters. The problem is that sed or perl doesn't seem to handle the Chinese characters correctly so using a regular expression like this 's/^[*.]//' which would normally work doesn't. From what I have read so far I believe these characters are double encoded UTF-8 (not 100% sure) which could be the problem. So far I've tried numerous different regex's as well as playing around with convmv to see if I could convert the filenames to just single encoded characters but I've had no luck.
View 1 Replies
View Related
Jan 8, 2011
What I am attempting to do is rename some television shows into the format that my PVR will understand for the naming convention. I have a script that cleans them up about 95%, now I just cant figure out the last little detail..
For example: NCIS_01.mkv
I think it can be done in sed, but I just figure out how. I need it to be renamed to: NCIS_s01e01.mkv
How can I make sed (or something else) match the last "_" and any numbers after it until the period and then insert text between them reliably?
Depending on the show, it can be something like: This_show_name_243.avi so I need it to be more flexible than I can figure out how to do..
View 6 Replies
View Related
Mar 6, 2011
I have this cool bash script that I worked hard on. But it broke down when it can across files that had non-English characters. Another small problem was getting it to descend into a directory. If it renamed a directory it would not descend into that dir to rename the other files. I would have to run the script twice on the same directory.
Here is the script:
Code:
find -type d -o -regextype egrep -iregex '(.*.ogg|.*.mp3|.*.wav)' | while read s
do
rename -v 'y/A-Z/a-z/' "$s"
done
find -type d -o -regextype egrep -iregex '(.*.ogg|.*.mp3|.*.wav)' | while read n
do
rename -v 's/ /_/g' "$n"
done
A French name like this:
Code:
Chateau De Sable (imagine accents above the letter a)
became this:
Code:
ch303242tea_de_sable
This is not what I wanted.
Why would the script not descend into a directory after it was renamed?
View 7 Replies
View Related
Jan 15, 2010
I have a load of photos from my old Nokia phone that I need to rename. A few examples of the current format is "ddmmyyyy.jpg", "ddmmyyyy(001).jpg", "ddmmyyyy(002).jpg" etc, where ddmmyyyy is the date.I need to rename hundreds of files in a single directory so that the first 8 digits are rearranged into "yyyymmdd.jpg", "yyyymmdd(001).jpg" format etc.Even better if the output format could be "yyyy-mm-dd_(001).jpg"
View 5 Replies
View Related
Mar 21, 2011
I am building a minimal 6.2.2 linux kernel with slackware on an AMD athlon +1700 single core box.
In the lilo.conf file, there was originally only one entry, which was created by the slackware cd install.
Now, my questions are:
1.Does a person edit the lilo.conf files before or after they rerun lilo?
2. If that person edits the lilo.conf files before they rerun lilo, does the sequence of the entries in the lilo.conf files affect the manner in which lilo treats the new and old kernels? (e.g. If I put the new minimal kernel build as the first entry, will I get an error message saying that the kernel sizes do not match or that the iso image is too large, or some other strange error message?)
3. Are there any other lilo related problems, options, or tweaks that you think are pretty cool and that I might like to hear about?
4. Would I be better off using GRUB?(I don't like GRUB, but I'm throwing this one in here just for completeness.)
View 6 Replies
View Related
Sep 27, 2009
I have downloaded both versions of Fedora 11 (Gnome and KDE) to iso files on my hard disk - in Windows XP. I then tried the verification procedure advised in [URL]... section 3.1. I have successfully installed and run hashcalc, with the SHA1 option, and got the following results:
- for the Gnome version : 795b52b3c7b16eba6f2cae055ec894d8648d8095
- for the KDE version : 38ef6c97e29803add28d40add05aa025b6f4c92b.
But I can't find any SHA1SUM files to give me the correct character sequences against which to compare the said results.
View 7 Replies
View Related
Jan 3, 2009
After i try to find logfiles follow date/month/year. i want copy this files to another directory with name's directory is time you find(date/month/year).
View 4 Replies
View Related
Mar 8, 2010
I'm trying to install fedora 12 on my pc, which has already a windows installation. I have windows on one partition, and had another partition to install fedora. I burned the DVD installation and booted the pc from it, no problem there.I get to the part where i have to choose the partitions, and i deleted the unoccupied partition(which was NFTS i think), i tried selecting the partitions myself and tried too letting the installation choose the partitions.But i get the message "can't have overlapping partitions" and well.
View 9 Replies
View Related
Oct 16, 2010
As i used Terminal, i noticed something odd: the text is overlapping itself. In other words space between letters is uneven and can be negative.
See screenshot if you wish.
What could cause that? Is it a Maverick bug? Or has it something local?
View 3 Replies
View Related
Dec 21, 2010
On my RHEL6 Gnome Terminal, the text is overlapping. I tried with the "Use the system fixed width font" option or changing other fonts, but they did not change. Also, I tried creating .fonts.conf file that's posted as a solution for other but this did not help.
Thing is that the first time when I installed RHEL6, it looked ok, but 2nd installation on VirtualBox client and thereafter, this happens. I'm using the same installation source and options as the 1st time. Also, "Open Terminal" option is missing from pop-up window after 2nd installation (Terminal is still available from App->System Tools; just not from popup window).
View 1 Replies
View Related
Aug 20, 2010
I cannot have any more than 47 characters on each line of my virtual terminal without everything on that line disappearing. The text is apparently still there, since commands that need more than 47 characters still work but the text stays hidden. After the text has been overlapped I can type as many characters as I like and it no longer overlaps, but my PS1 on that line and all previously overlapped text stays hidden.I'm almost certain that the problem is in my bash configuration since it happens in a terminal emulator as well as the virtual terminal.
View 2 Replies
View Related
Dec 8, 2010
I can't seem to run Evolution. Whenever I try to open it, I get a box asking for the password for my email account as well as a box asking whether I want Evolution to be the default mail client. The answer in either box is not acknowledged, and the only was I can figure out to close it is to "killall evolution". I'm having a hard time searching for bug reports--nothing seems to come up with the terms that I have used.
How can I reset this? I kind of want to try out the Contacts manager feature and the MS Exchange compatibility, but I use Thunderbird for my main email and I don't want Evolution to be the default. Incidentally I'm actually using Fedora 13 but I imagine most of the commands I might need are the same.
View 2 Replies
View Related
Jan 21, 2011
I read many threads regarding `gparted` not showing up hard disk partitions. Also read the advice not to change partition table according to solution to given to others. So posting my partition table here...
Code:
sudo parted /dev/sda print
Error: Can't have overlapping partitions.
Code:
mint@mint ~ $ sudo fdisk -lu
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
[code]...
I guess entire disk is taken as extended partition and primary partition(/dev/sda4) lying within this. So this is may be similar to thread [URL]. Correct me if I am wrong and also advice me on how to proceed further.
View 9 Replies
View Related
May 22, 2011
I've attached an example.As you can see,fgl_glxgears window is under the chrome window(look at the title bars), but you can still see the gears.The same thing happens with video in VLC.I'm using 11.04. This happens with or without compiz. I'm using the latest ati video drivers from AMD's site (11.5).
View 2 Replies
View Related
Dec 19, 2009
tell me which text editor supports multiple overlapping windows (eg like turbo C++ 1.01 IDE ? ). Currently I'm using gedit and find that I cannot see two or more files at the same time
View 8 Replies
View Related
Aug 12, 2010
Enabling visual effects to either of normal/extra result in a serious problem-scrolling down any page results in overlapping of text, which is corrected only when i minimize and maximize the window.
View 4 Replies
View Related
Jan 19, 2010
I'm faced with standing up an open source NMS and am deep into Zenoss Core. I'm evaluating distributed collectors that will be deployed behind a customer NAT/Firewall. Cool, this works. What if the customer IP space overlaps with an existing customer IP space? From a management perspective Zenoss distinguishes devices by IP. So it will refuse to add duplicate addresses. To get multi-realm IP functionality, It would require purchasing a subscription to enterprise license.
So my pickle, do I spend weeks or months hacking the Zenoss sub structure to duplicate that? Do I somehow remap the IPs through site to site VPN at the router? Or do I look for a different open source solution?Does anyone know of an open source NMS solution that addresses overlapping IP space and can do distributed collectors? I have posted a question on Zabbix forums asking if the distributed monitoring they have will do this. But I hope that someone else has tackled this and succeeded.
View 1 Replies
View Related
May 21, 2010
my system monitor plasma widgets for RAM and CPU suffer from overlapping textin the panel Kubuntu Lucid). I can't find an option to resize the widgets.
View 1 Replies
View Related
Mar 8, 2010
Installation fails with PartitionException: Can't have overlapping partitions I am trying to install Fedora in my Laptop as a dual boot. I tried to create partitions like root ext4 then /home & /var lvm and swap but after applying write changes to disk I am getting PartitionException: Can't have overlapping partitions. So I tried several times just normal partitions etc. but didnt work. I found this on net
[Code]....
View 3 Replies
View Related
May 4, 2011
I think the installation caused the corruption of the partition table. I removed the last 3 logical partitions and gparted correctly reported the 2 remaining distros and the swap. The problem hopefully will be solved when I reinstall those distros. I have a 160 gig HD with 3 Linux,1 swap,and a Windows partition. I attempted to install PCLINUXOS unsuccessfully. When I rebooted I had the same grub. I checked gparted and it indicated all 160 gigs as unallocated. fdisk shows the partitions. and indicates one partition as empty where I attempted to install PCLOS.
No problem in accessing any of my distros, but currently I can't make any changes to my HD. I've tried parted magic and there was no solution there. I have been unable to download the Ubuntu Rescue remix. Is there a way to restore? I haven't used fdisk or cfdisk for that purpose. I am beginning to think I would need to delete all of the partitions in the extended.
FDISK
omitting empty partition (8)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x23213b72
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5354 43005973+ 7 HPFS/NTFS
/dev/sda2 5355 15690 83022975 5 Extended
/dev/sda3 18740 19059 2560000 82 Linux swap / Solaris
/dev/sda4 19059 19458 3203072 83 Linux
/dev/sda5 5355 7908 20506624 83 Linux
/dev/sda6 7908 10840 23552000 83 Linux
/dev/sda7 10840 13772 23552000 83 Linux
View 14 Replies
View Related
Jul 1, 2010
I installed OpenCV and am trying the example programs. When I try to compile like in the tutorial it is not finding highgui.h.I have 64 bit Mint if that helps at all
View 3 Replies
View Related
Nov 14, 2010
There are millions of files in many directories. Wherenver i try rm * or find or use xargs, they say 'argument list too long' and exit. How can i deleted files in a directory with so many files without deleting the directory itself.
View 3 Replies
View Related
Mar 3, 2010
Xubuntu 9.04 installation CD not detecting any of the current partitions. This all started when I reinstalled windows XP a few days ago.After, the computer wouldn't boot into GRUB and would boot directly into windows.Other threads have dealt with a similar issue, that of overlapping partitions causing libparted/parted/gparted to detect the whole drive as unallocated space. The problem in these threads seemed to be a corrupted partition table, in which the partitions overlapped with each other. So of course I checked the output of fdisk -l for overlapping partitions, but I don't see any obvious overlapping partitions. I've noticed that the partition that used to be linux swap isn't showing up in the partition table at all. I might just be missing something simple here and would like another set of eyes to help me figure this one out. Does the problem have anything to do with the partition table being out of order (ie. not in order of what regions they cover on the drive)? From the liveCD I've run
Code:
sudo fdisk -lu
sudo sfdisk -d
sudo parted /dev/sda print
and have received the following output:
Code:
ubuntu@ubuntu:/mnt$ sudo fdisk -lu
omitting empty partition (5)
Disk /dev/sda: 60.0 GB, 60011642880 bytes
[code]....
View 3 Replies
View Related