General :: When Using Grep From VIM, How To Jump To Results

Feb 22, 2011

When using the grep plugin to VIM, I can search the current directory for all occurrences of a string within a set of files, like this::grep Ryan *.txtThis outputs something like this:

file1.txt:3:Ryan was here
file2.txt:10:Ryan likes VIM
file3.txt:5:superuser.com is a fav of Ryan

[code]....

View 1 Replies


ADVERTISEMENT

General :: Filter Out Unique Results From Grep Output?

Feb 21, 2010

In linux, I can grep a string from a file using grep mySearchString myFile.txt.
How can I only get the result which are unique?

View 1 Replies View Related

General :: Saving The Results Of The Time Command While Discarding The Results Of The Command Being Timed

Apr 6, 2010

I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:

$ time ./foo > /dev/null >> output_from_time_command.txt

View 1 Replies View Related

General :: Making The Jump From XP Pro To Ubuntu 10.04?

May 6, 2010

I just finished making a clone image on my XP Pro HD and am now ready to install Ubuntu 10.04. Are there any scripts available that will install software that will add more functionality to my new Ubuntu installation? I installed 10.04 on a Dell Desktop circa 2003 with an 80GB HD and 512MB of RAM. Looking forward to using it!! Is this latest Ubuntu release better than XP Pro overall?

View 5 Replies View Related

General :: NTP Clock Jump One Hour At 12:00 AM?

May 20, 2011

Yesterday I configured an NTP Server, and synched a sever with my NTP Server. Now some how my Client clock jumped one hour ahead at 12:00 AM, while HW Clock and NTP Server Clock remained.

Code:
cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Karachi"

[Code]....

View 2 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

Ubuntu :: Running 10.10 From A Jump Drive?

Dec 17, 2010

I have an old acer aspire one that the hard drive has been cooked. the computers fine other then that, so what I'm trying to do is run it using 10.10 net book installed(not installer but actually installed) on a usb drive. I've created the installer on another jump drive and installed it onto the 8 gig using the aspire. everything goes fine, it tell me to reboot so i do and all i get is a black screen with the curser.It responds to nothing and never moves.

View 9 Replies View Related

General :: Different Results In Du And Df?

Oct 29, 2010

I was checking /opt and then found something unusual. Below are the results of du and df -h,

Code:
$sudo du -h /opt/|tail -3
1.1G /opt/IBM

[code]....

View 2 Replies View Related

Ubuntu :: VDPAU Slow And Jump In Maverick?

Oct 23, 2010

I recently upgraded to Maverick. I did a clean install on my system. I am running NVIDIA drivers from the X-Swat repo. Whenever I try to play a mkv file using Gnome Mplayer it is very jumpy and laggy. VLC, using it's new hardware acceleration, won't even display video, though it does output the audio. I experienced none of these problems with my 10.04 setup. I am unsure if it is a player bug, a driver bug or something with the VDPAU library itself.

View 9 Replies View Related

Slackware :: Get Jump And Scan Option For Xterm?

Jan 21, 2010

xterm is scanning lines one by one.It takes time.I did jumpScroll: true ,but it results same. But rxvt is better comparing this. Where would i get the global configuration file for rxvt and xterm?

View 1 Replies View Related

General :: Different Results From Vmstat And Ps?

Jun 24, 2010

I am trying to determine CPU usage on a radio controller running Linux. We have a script that another member of my work wrote using vmstat which I could not get any consistant results from. So, in an effort to understand what was going on I wrote a script using ps. Sadley after running several tests using both scripts, they do no match up at all, vmstat always gives me a much higher value. However, if I simply run the commands at any given time they do match up, therefore I believe that there is an error in one of the scripts. I am very new to linux and so Here is the vmstat script:

#!/bin/bash
declare -i total
declare -i tries

[code]....

View 11 Replies View Related

Ubuntu Installation :: Bootloader Installed On Jump Drive?

Mar 30, 2010

I just finished installing lucid lynx netbook to my jump drive (full install) to save room on my hard drive. It's working fine except the bootloader was installed to the jump drive as well, meaning I can't boot my computer without the jump drive. Is there any way to correct it so that the computer boot from the hard drive while keeping my install on the jump drive?

View 2 Replies View Related

Ubuntu Servers :: Jump Start A Server's Networking?

May 1, 2010

My desktop server serves up files via a number of protocols and I connect to it via SSH and Avahi. Today I tried connecting to it via SSH, but it timed out. I was able to ping it, and a port scan reveals all the ports I have open on the network. THe problem is that I can't connect via SSH, HTTP, AFP, SMB or any other protocol I have established.Is there a way to jump start a system in a situation like mine? I have a 6 month uptime going, but I'm taking it down soon for some hardware upgrades, so a hard restart is not out of the question, but I'd rather not. I also reset the router without a solution.

View 5 Replies View Related

Ubuntu :: Download / Upload Programs With A Jump Drive?

Nov 18, 2010

This may be impossibly easy or easily impossible, but I'm looking for a step by step guide to download an entire program onto a jump drive, then to drop that program onto another computer.

View 2 Replies View Related

Ubuntu Installation :: Windows Appear Off Screen And Jump When Clicked

Dec 1, 2010

I have been running Ubuntu desktop on my Acer Aspire One AOA150-1635 for over a year now in one form or another. I originally dual booted XP and Ubuntu Netbook Remix but decided against the remix when I did a clean install (over a year ago). All the issues I had then were the same issues others were having and have been fixed for a long time. I just recently upgraded to 10.10. I am unsure if this problem was present prior to the upgrade and I just hadn't run across it yet. I am also getting ready to upgrade my desktop and am afraid I will have the same issues.

It seems that certain windows don't fit on this desktop. For instance when I open Compiz config settings manager the bottom of the window is below the screen. When I try to click an option the window jumps and the same thing happens to the top. I can also click anywhere on the window to make this happen. I have included a couple pictures (taken with my camera please forgive the quality) to show you exactly what it is doing. It is getting rather annoying when I try to open one thing and the other right above or below it opens instead. I have to place my pointer in the spot where the item I am selecting will be after it jumps in order to open what I mean to open. When I right click it gives me options as if I was right clicking on the desktop background. The other issue which seems to be related is not being able to get to certain parts of longer windows such as Gnome color chooser. It seems to run off screen as well.

View 4 Replies View Related

Server :: Trying To Build A Ssh Jumpbox - Allow To Jump To A Private Ip Scheme

Jun 12, 2010

i am trying to build a server that will allow us to jump to a private ip scheme. GB1 65.20.x.x gb2 1.1.x.x if i ssh to the 65.24 ip and configure gb2 i lose access to the server completely. am i missing a route somewhere? BTW this is ubuntu server 10.04

View 5 Replies View Related

General :: 64 Bit - Different Commands Shows Different Results?

Jul 10, 2010

The system of my VPS is centos 5. I want to know if it is 32bit or 64bit. > uname -a Thu May 13 13:49:53 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

looks like 64 bit.
But
> getconf WORD_BIT
32
Looks like 32 bit.
Which is correct?

I believe the linux of my VPS is 32 bit. Because I downloaded a 64bit mongodb, found it can't start. And when I downloaded a 32bit instead, it works well.

View 3 Replies View Related

General :: Why Does `du` Not Show Results For All Files

May 22, 2011

I (for curiosity's sake) am running du -a inside /usr/lib/git-core and it does not show results for all the files in that directory. Why does it leave out an arbitrary set of files?this is what cd /usr/lib/git-core; du -a returns:

4 ./git-merge-resolve
972 ./git-config
12 ./git-show-index

[code]....

View 1 Replies View Related

Ubuntu :: General, How To Exec On Ls Results?

Feb 10, 2010

Find a file and need to do something to it, think there must be a single line solution for:

$ ls *.c
$ cat *.c

View 1 Replies View Related

General :: Having Only One Instance Of Search Results?

Oct 6, 2010

having only one instance of my search results

View 5 Replies View Related

General :: SU Results In Cannot Execute Bash

Feb 13, 2011

SU results in Cannot execute bash: No such file or directory.

View 1 Replies View Related

OpenSUSE :: Can't Save My Datas To Jump Drive - Exterior USB / Sort It?

May 11, 2011

I could not save all of my OpenOffice document .odt files to exterior USB drive. I am using openSUSE 10.2 that runs well with my old Toshiba Satellite laptop on KDE. I did tried almost everything in it but could not.

View 3 Replies View Related

Ubuntu Multimedia :: Can't Watch Heavy Mkv Files Coz They Jump During The Playback?

Jun 23, 2010

I upgrade mi connection between my PC to my TV, from VGA to HDMI, now I can't watch heavy mkv files coz they jump during the playback, I cant watch MD content on ..... coz the video keeps loading from time to time even if the video is fully loaded,resuming, crappy - not fluid. I tried changing resolutions and refresh rate between 1280 x 720 and 1920 x 1080 but nothing. Do I need to change my video card to be able to see 1080p media at 1920 x 1080 res in my ubuntu?

description: Desktop Computer
product: MS-7280
vendor: MSI
version: 1.0
serial: To Be Filled By O.E.M.

[Code]...

View 1 Replies View Related

Ubuntu :: Keyboard - Typing In An Application, The Cursor Will Jump Up And Over A Few Lines

May 12, 2011

I am running Ubuntu 11.04 on a DELL Latitude E6510 (bios A07). I am experiencing an annoying problem: It has this weird keyboard issue where whenever I am typing in an application, the cursor will jump up and over a few lines. The problem also happened under Ubuntu 10.04 and 10.10 and under bios A03.

View 6 Replies View Related

General :: How To View Results Of Cron Jobs

Mar 21, 2010

I see so many guides on how to run crontab, but what I need right now is to learn how toFind log files about cron jobsConfigure what gets logged

View 3 Replies View Related

General :: Running Git-svn With Cron Results In Garbage

Mar 25, 2010

I've setup a git-svn repo with cron to fetch from the svn repo daily. I have a script to do the fetching, and this is what is invoked by cron. Everything is fine with the repo, and the script works fine when executed manually. However, when it runs under cron, empty files get dropped into the .git directory. The files have names that look like they are some base64 output, e.g. juTrvjP6m8 and kcKf3hu3b4. Two of these files show up for every cron run. I thought these might be commit hashes, but they're not, git-show says it's an unknown revision. I set-up the repo as follows:

[code]...

The last line pushes the repo to a separate (bare) public repo from which others can clone. I'm piping the output from the cron job to a file, which looks like this:

[code]...

The line "fatal: unable to run 'git-svn'" is alarming, but the fetch seems to go ahead anyway. Where are these empty garbage files coming from, and how to stop them? Am I in for bigger problems in the future?

View 1 Replies View Related

General :: Set Ls To Return Colored Results By Default

Sep 14, 2011

In my .bashrc I have the following lines to turn on colors for grep and ls alias ls='ls --color=auto'export GREP_OPTIONS='--color=auto'.I've tried changing the alias to export LS_OPTIONS='--color=auto' but that doesn't work.Is there anyway to use an export instead of alias. And are there actually any benefits to one way over the other?

View 2 Replies View Related

General :: Fdisk -l Doesn't Give Any Results

Mar 6, 2010

i'm in need of my hard drive & usb flash drive numbers, but when i do fdisk -l i get no results - it just gives me the prompt as if i've pressed the enter key on my k/board.

View 1 Replies View Related

General :: IF Statement - Not Getting Equal Results From All Cases

Jun 6, 2011

I'm a bit stuck with IF statement. There is the code:
#!/bin/bash
# Variables
VAR1=test
VAR2="echo $VAR1"

# Case 1
echo Case 1
if [ test == test ]; then
echo "equal"
else
echo "not equal"
fi;
echo ""

# Case 2
echo Case 2
if [ "VAR1" == test ]; then
echo "equal"
else
echo "not equal"
fi;
echo ""

# Case 3
echo Case 3
if [ "VAR2" == test ]; then
echo "equal"
else
echo "not equal"
fi;
echo ""

When executed, why case "2" and "3" differs from case "1"? Where am I wrong and how to solve this trouble? (my aim is to get "equal" from all cases).

View 2 Replies View Related

General :: Find -mtime Gives Unexpected Results?

Aug 12, 2010

Code:
$ ls -l
-rw-r--r-- 1 username vuser 35553 Aug 9 18:15 note.20100809_1815.sql

[code]....

View 3 Replies View Related







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