sed -i 's/EXTRAVERSION =/EXTRAVERSION = -$(date +%D)/g' file would search in the file, file for the string: 'EXTRAVERSION =', and change every instance it finds to 'EXTRAVERSION = -02/20/2010'. BUT IT DOESN'T.It changes it to 'EXTRAVERSION = $(date +%D)', literally. I've tried single and double quotes in almost every possible configuration. Is there any way to tell sed that one desires the command output, not the literal text?
I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following
I have searched and searched in regards to this documented 'special expression '-l STRING' for the 'test' command, and to no avail, have I found out why it does not work on my system.
The example always given is: Code: test -l abc -gt 1 && echo yes And the returned result is: Code: bash: test: -l: unary operator expected The documention is usually as follows: Numeric tests
Numeric relationals. The arguments must be entirely numeric (possibly negative), or the special expression `-l STRING', which evaluates to the length of STRING. Then examples are given, including the one I provided above. Does anyone else have this issue of getting an error when trying this special expression of 'l STRING' ???
fedora logo animation splashscreen that appeared when the Live CD was booting? Now when I boot into my Fedora 15 I get an ugly verbose console-like output and am not interested in seeing what's happening behind the scenes!
I'm in normal mode then I press "ayiw to yank a word into register a, gvim shows the "ayi as I type it near the bottom right corner. Is it possible to get this real-time display in console vim, if so how?
I'm aware I can do !commands but I'd like to somehow integrate a shell in vim. Or could I use screen and split the screen so that vim takes up say, half of the screen?
1). What is the console command to scan all of Fedora, not just a specific directory, but the entire computer?
2). Even tho I have consulted the CLAM AV site on how to update to the latest virus signature database, I don't either understand what they are telling me to do, or I am not "getting" how to do it.
when I use e. g. cat file.txt | grep --color=tty "pattern" I get the pattern I search highlighted. When I want some more context around each hit, grep has the -A, -B and -C parameters. However, I want to display the whole file (or whatever command output) and highlight a certain pattern. Does such a highlight command or tool exist?
It used to be with (old) grub you could hit a function key and add a runlevel option to boot a console, but I don't know how to do this here, wanting not to edit the grub config file, as seems the only apparent option: I'm trying to boot into SimplyMepis where there is no rescue menu option, so need the prompt?
But in this way the command console will keep hang. Now I want to write a script which calls u this command and return back to the command console. Here is what I wrote but it doesn't return back to the command console:
Code:
#!/bin/sh MSGBP_HOME="/opt/jboss/MSGBP" case "$1" in start)
I've configured my debian lenny to load first the command line, then if i want I load the X server, but doing this to that way I don't have the suspend/hibernate functions from the gnome menu, so, my question is:
what is the command to suspend / hibernate my system at any moment I decide?
I am trying to get my standard PS/2 Wheel mouse working on the Console command line, and seem to be having major problems getting it to work.
For the record, I am NOT talking about X, Xterm's or any Graphical Interface, my mouse wheel works fine in these environments.
I am purely concerned with getting the mouse wheel to work on the Console.
After many hours of reading forum posts about getting the wheel to work on the Console, this is what I have tried to date:
1. I have downloaded and installed every version of gpm I could find in the hope that one would utilise the wheel. (No Success).
2. I compiled and installed the latest version of gpm stable (1.20.6) to see if the wheel would work with it. (No Success).
3. I have tried setting up gpm-1.20.6 as a repeater to X, using every string I could find (msc, ms3, pnp .. etc), as well as every /dev entry in xorg.conf /dev/mouse, /dev/input/mice/, dev/gpmdata/, /dev/psaux ... etc). (No Success).
4. Created directories and configured a gpm.conf to both /etc/ and /etc/conf.d/ in the hope that gpm was looking for them there (read that in one forum or another). (No Success).
5. I then tried to find mouse wheel patches for gpm, and then downloaded the relevant version source gpm.***.tar.gz to go with these patches. Nearly every single one of the patches failed to apply (using patch -p1 >), except for one version I tried that did apply ... but then failed to make (stating that the source had a different signedness or some such thing) ??? (No Success).
6. I looked into IMwheel, but that seemed to be a purely X program that was a lazy way of writing ZAxisMapping in xorg.conf. (No Success).
So now I am stumped ... Does anyone know if if is possible to get:
a). A Wheel Mouse Patch for a recent version of gpm (1.20.6) that will actually apply, and then make?
b). A prepackaged recent version of gpm-1.20.6.tgz that has been patched to enable the wheel that I can use?
c). Any other information that may enable the mouse wheel to start working on the console.
I'm using linux suse 9.3. Recently i try to run execution files but it shows an error try running with the option "-console" or "-silent" When I tried with the -console option, I got the error - The wizard cannot continue because of the following error: Invalid command line option: console is not supported (1001) (403)
I have a Asus EEE PC 1005P which I installed a Command-line system on using the Alternate Installer CD of Ubuntu Lucid Lynx. Altough I think this is a general linux and grub2 question. I do not have (or want) the X Window System installed. I want to change my console screen resolution (not inside X) to 1024x600. But it isn't reported when I use vbeinfo inside grub:
grub> vbeinfo VBE info: version: 3.0 OEM software rev: 1.0 total memory: 8128 KiB List of compatible video modes: Legend: P=Packed pixel, D=Direct color, mask/pos=R/G/B/reserved 0x112: 640 x 480 x 32 Direct, mask: 8/8/8/8 pos: 16/8/0/24
[Code]...
Does it mean I have the driver? how to set it to 1024 x 600 in grub2?
I'm using fedora 12 with sun virtualbox and I want to install texinfo 4.9 from texinfo-4.9.tar.bz2
-I extracted the archive in a folder..........ok -In a terminal: ./configure......................ok -In the terminal: make...........................error
I am getting:
info.c: In function 'main': info.c:161: error: expected expression before '/' token info.c:327: error: expected expression before '/' token info.c:327: error: too few arguments to function 'info_add_path' ...
and a lot more. For some personnal reasons I must install it this way, I can't upgrade fedora, gcc...
I have just switched to banshee as my media player and imported my films and music. Problem is, the video list is quite hard to read because all the video files have spaces in their names which are replaced by % signs, numbers and letters. I'm wondering if there is a command I can use in the directory that will automatically remove all the spaces from the filenames or better still, replace the spaces with hyphens or underscores?
How can I start a program from tty1 console text mode to be executed in tty2 console text mode? Actualy I would like to start a program (chat client cli program) in tty8 automaticaly when linux PC boots.
I wanted to know command to triggered "Safely Remove Drive".So I could implement it on Hardy 8.04 http://ubuntuforums.org/showthread.p...88#post8674988