General :: Fixing Ranges Using Shell Script?

Dec 3, 2010

I have the datafile like this. I have to subtract 20 to the left of that number and add 120 to the right of that number. Output also given.Quote:

Input:
Chr5:26236044-26236064
Chr25:2622227-2622247

[code]....

View 3 Replies


ADVERTISEMENT

Programming :: Shell Script To Convert Values On Successive Lines Into Consecutive Ranges?

Jul 7, 2010

I have a series of input files formatted like this:

Code:

RTREVF, KOG3266 = 111
RTREVF, KOG3294 = 130
RTREVF, KOG3295 = 177
WAGF, KOG3307 = 107
JTTF, KOG3320 = 174

Each line represents a portion of a data matrix. I want to convert the numbers after the "=" to the range of that partition in the matrix such that the output file looks like this:

Code:

RTREVF, KOG3266 = 1-111
RTREVF, KOG3294 = 112-241
RTREVF, KOG3295 = 242-418
WAGF, KOG3307 = 419-525
JTTF, KOG3320 = 526-699

View 5 Replies View Related

General :: Run Script Unless Between Time Ranges?

Aug 8, 2009

I use speech for a lot of notifications, email, time every 30 minutes, system alerts, etc... but there are times when I do not want the speech, because I am on a conference call or have an open mic.

View 5 Replies View Related

General :: Capture Packets With WireShark On 2 Port Ranges?

Jul 3, 2010

I'm trying to capture packets with WireShark on 2 port ranges.

This syntax is not working :

Quote:

bash-3.2# /usr/sbin/tcpdump -ttttvv udp portrange 8500-8600 and portrange 5060-5070

There is no output...

What is the correct syntax for defining multiple port ranges ??

View 4 Replies View Related

General :: Fixing Partitions With Gparted?

May 23, 2010

I currently have Xubuntu and Mac OS X on my PowerBook G4, however, I recently got a netbook and use Ubuntu via USB on it and now would prefer to have only OS X on my powerbook. I would like to use Gparted to restore/fix my partitions and don't exactly know what I need/don't need and also how to resize my os x HSF+ partition back to full size? An image below shows my current setup (kinda messed up I think.) What steps should I take in Gparted to delete the unnecessary partitions and give OS X it's full size?

View 3 Replies View Related

General :: Text File - Needs 'fixing'?

May 4, 2010

We are currently transferring data from a proprietary DB to Postgresql. All of the data is in text files, each approx 125,000 lines long.I have a problem with 2 of the files.One of the columns contains a numeric which should be in the format 00000.00 or be 0.00 -unfortunately approx 25% of the records contain a null.I can use cut to 'slice' the file into 3 sections but my problem is : how do I keep the values and only replace the nulls with 0.00

View 11 Replies View Related

General :: Fixing Grub From Rescue Mode

Feb 23, 2011

I got my wife to try Linux, so we set her machine up to dual boot with Windows. After a few weeks, she decided not to use Linux, so we deleted the Linux partitions using Gparted on a USB drive and resized the NTFS partition, under the apparently mistaken impression that Grub would detect that there was now no other operating system. When we rebooted, we got error: no such partition, followed by a grub rescue prompt. I've never worked with Grub directly before, so I have no idea what to do at this point.

View 5 Replies View Related

Programming :: Compress Ip Address Ranges?

Sep 19, 2010

I've googled til my brain went boom... So the short story goes; I have lots of ip address ranges in multiple files which need to go into an iptables firewall... Sounds simple right?

Example of files:
1.0.1.0-1.0.1.255
1.0.1.0-1.1.0.255

[code]....

View 3 Replies View Related

Networking :: Manually Determining Ip Address Ranges?

Sep 8, 2009

I am trying to remember the procedure used to determine the ip address range when given a network address and its subnet mask. Does anyone have any documentation on the steps that are done to accomplish this?

View 6 Replies View Related

Software :: Configure IPTABLES To Allow Certain IP Ranges To Ports 25 And 465?

Feb 16, 2011

I have a mail server with IPTABLES enabled.I want to allow access to:

41.0.0.0/8
58.0.0.0/8
61.0.0.0/8

[code]....

View 7 Replies View Related

Programming :: Finding Particular Ranges Of Results In MySQL?

Jan 20, 2009

How do I find for example the 4th to the 9th result in a particular SELECT query?

View 6 Replies View Related

Security :: Debian 6: Iptables Blocking Certain IP Ranges On A Certain Port Range?

May 16, 2011

I am currently running Debian 6. I would like to know if there is a way and how i would go about blocking a certain IP range from connecting to my server within a certain port range. Say for example.

i want to block ip range 123.123.123.* from connecting to my server on the ports 33000 - 43000. But, i want to allow them to connect on any other port range, and i want to be able to allow connections from my server to the blocked ip range on those same ports. so, blocking incoming only on the above port range.

using iptables.

View 1 Replies View Related

Programming :: Modify Script Loading Array With Ranges Of Lines In Awk?

Mar 15, 2011

As awk programmers may know, we can print range of lines with awk, from an initial pattern until a final pattern as follow:

Code:

awk '/Initial_String/,/Final_String/' inputfile

Well, I have this inputfile:

Code:

[code]...

Once having those elements in that way within an array(a[]), I want to be able to manipulate the array (a[]) and copy its elements
to another array (b[]) in different order (all lines joined in a single line separated with commas), as follow:

Code:

Category,Adventure,Titles,Robinson,Crusoe,Saturday,Authors,Daniel-Defoe,Ian-McEwan

Only inserting the missing "array" coding and based and follow the code I've written Not needed to create a new code to do it with other method.

View 7 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

Server :: Postfix: Explicitly Permit "joeblow@mydomain" From Certain Address Ranges?

Jan 4, 2011

One of our clients uses a mobile client, which "helo"s with a non-resolvable hostname (which contains the correct IPv4 address in the name but does not resolve). I'd like to be able to config PERMIT "joeblow@mydomain" when the helo-names "*.mobilepool.carrier.net". Can anybody give me a hint how to do this, if it is even possible?Right now it just rejects based on not resolving the HELO name.

View 2 Replies View Related

Ubuntu :: How To Use Bug Fixing Information

Oct 27, 2010

I recently come across some bug reporting things. I know what is bug but don't know how to use bug information that i got . can anybody explain it for me .

View 3 Replies View Related

Debian :: Fixing Apt-get Errors ?

Oct 9, 2010

Been living with apt-get not working for a while now, don't know how it broke but i'm running a 2.6.26.8 kernel for vmware and maybe thats it?

Code:

The following extra packages will be installed:

The following packages will be upgraded:

View 10 Replies View Related

Debian :: Fixing Crappy Looking Fonts On LCD?

Nov 17, 2010

I'm running Debian Squeeze 32-bit with KDE 4. I've got a BenQ T2200HD monitor, and no matter how i try to configure it, fonts will always look crappy. after looking around a bit, I found some patch that is called David Turner's LCD ClearType-like patch. I found the packages- [URL]

View 10 Replies View Related

Ubuntu :: 9.10 Live Cd Fixing Bad Sectors

Jan 15, 2011

having problems loading any OS because of bad sectors. will only load off live cd 9.10

View 1 Replies View Related

Ubuntu :: Fixing MBR After Windows Installation

Aug 17, 2011

without thinking, reinstalled my windows installation after already having the dual-boot set up and it wrote over the GRUB with Windows MBR. I let my girlfriend's friend borrow the disc before this and decided to just wait it out. Then, when getting the disc back, I carelessly forgot it at their house and have never been able to retrieve it, nor do I think that I ever will.

At this point my only live discs either only have GRUB1 or are corrupted. My only tools now are a netbook with a wubi installation of Xubuntu(no CD drive) and a 1GB flash drive, it seems. Any suggestions on how to access my ubuntu installation?

View 5 Replies View Related

Software :: Fixing A Machine Without /boot.?

Jun 23, 2010

Some how, my /boot has been deleted. So can this machine be recovered ?

View 3 Replies View Related

Programming :: Fixing A Bug In Opensource Project?

May 12, 2010

I have the joyous task of having to find and fix a bug in a large opensource project for an assignment. Fixing the bug should only take about 4 hours according to the lecturer. I would prefer the source language of the project to be Java, since my C++ is quite rusty.

So, does anyone have some experience in this type of thing, and can you give me advice about which projects would not be nasty to an ignorant student? Also, which tools did you use to make it easier for you? I want to learn how to do this,but I'm just a bit clueless at present.

View 5 Replies View Related

Slackware :: Fixing Lilo After A Bad Edit?

Nov 20, 2009

I've read that you can fix lilo after a bad edit by booting from install cd1 and entering: Code:boot: bare.i root=/dev/hda X noinitrd ro at the boot prompt. Can someone confirm this or suggest a better way? I'm using slackware 13.

View 3 Replies View Related

Debian Installation :: Fixing Grub2 On A EFI GPT System?

Nov 10, 2015

I installed Debian 8.2 first, then Windows 10 over it (I know, backwards, but I didn't wish to lose my customizations on Debian up to that point, and didn't realize until later that I wanted to Dual Boot). Running from a LiveCD of Debian 8.2:

Code: Select allsudo fdisk -l
Device - Start - End - Sectors - Size - Type
/dev/sda1 - 2048 - 116211711 - 116209664 - 55.4G - Linux filesystem
/dev/sda2  - 116211712 - 116244479 - 32768 - 16M - Microsoft reserved
/dev/sda3  - 116244480 - 232421375 - 116176896 - 55.4G - Microsoft basic data
/dev/sda4  - 232421376 - 234440703 - 2019328 - 986M - EFI System

[code]...

That's where I am stuck. I'm a bit new to Debian & Linux still and I've never dabbled with Grub2, I imagine I can't mount /dev/sda4 because in chrooted into /dev/sda1 and it can't see /dev/sda4 at this point (what I'm thinking anyway). So I try:

Code: Select allroot@debian:/# fdisk -l

fdisk: cannot open /proc/partitions: No such file or directory/I imagine that's what it is, but I don't know a way around that. I want to dual boot Windows 10 & Debian 8.2 on a UEFI (or EFI?) system with a GPT Disk. No guide I have found for fixing Grub2 or getting Dual Booting working with Debian then Windows installed have covered both things at the same time. I just have to be special I guess.

View 1 Replies View Related

Fedora Installation :: Fixing Dual Boot So XP Can Run?

Dec 27, 2009

I am a relative newbie to Fedora 12, altho did start with OpenSuse. I installed XP first with the games that couldn't run via wine. Then I installed Fedora but I must've done something wrong as although Fedora runs fine with a few personal tweaks with everything I want I can't access XP as it is no longer an option in the boot up. What do you suggest I do. I have a system rescue cd ready but don't know how to access the boot or change it.

[Code]...

View 5 Replies View Related

Fedora :: Fixing An Undersized Extended Partition?

Dec 17, 2010

I have a situation where a disk was built using an image from a disk with a much smaller geometry. The result is about 70% of the disk is unused. Most of the partitions (including root) are on an extended partition that is sized for this smaller geometry. The person who did this has already been scolded, but life goes on.fdisk shows this:

Disk /dev/sda: 146.6 GB, 146694733824 bytes
255 heads, 63 sectors/track, 17834 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

View 3 Replies View Related

OpenSUSE Install :: Fixing Server For 4KB Sectors?

Apr 17, 2010

I did set up a new server (with mail, apache and lots of other stuff) and was not aware that the new harddisks of type WD10EARS-00Y5B1 were using 4KB sectors internally. The problem became visible after going live because of the lousy performance of the harddisk drives.

Present situation: openSUSE 11.2 i586, 4 GB RAM, 2x 1TB HDD

Code:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000efdd0

[code]....

I already did re-partition /dev/sdb with parted-2.2 (compiled from source) and set the alignment starting with sector 64 (instead of the default 63) making sure that the sector count of every partition divides by 8. Now comes the tricky part: I must partition /dev/sda as well. I can backup everything to /dev/sdb. What is the recommended course of action here? Make sdb active and boot it? That would give me all the time I need to deal with sda. Then reverse again. Any backup of /dev/sda will be outdated soon (running system)Rescue DVD only offers parted-1.9.0

View 2 Replies View Related

Ubuntu Installation :: Adjusting Or Fixing The Size?

Aug 9, 2010

Ahm my question is, how can i adjust or redo the size of my hard disk in ubuntu? i mean i have the windowsXP OS then decided to install ubuntu 10.04 so i install it inside windows... i forgot to adjust the size or something?? because every time i boot ubuntu my free storage was 5 gb... but the real size of my HDD is 112gb in HOST directory but when im looking in home directory/home folder its shows that 5gb remaining, so what am i going to do? And what is my mistake?

View 2 Replies View Related







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