I have a file and at some point in the file the string "DONE" appears (it's unambiguous). I want to redirect all that is coming starting from the next line to a new file. How do I do that?
I have a multiple txt file in one folder. I would like to remove everything from starting until find string keyword in one folder. Here is the sample of my text:
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/mixxx-1.7.2/SConstruct", line 42, in <module> WE ARE IN: /mixxx-1.7.2/linux_build QT path: /opt/qt4 Loading qt4 tool...
[code]...
ive been scratching my head at this one for days, i turned on the ubuntu virtual machine and checked what apt wanted to pull, and im suspecting that i need to find the source versions of several packages in regard to qt4 and libqt4 and various libqt4 extensions.
How system call internals could be known ? I mean for example if i take the example of write system call of linux kernel, where i can find out the code of write() system call in the kernel source tree ? The problem is write() system call directly write on console.If we want to write the data on some web page then write() system call will not do that ? How to redirect out data from console to application like html/web page?
I am trying to grep multiple numbers from file, grep does have the -f option for that.
Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with
Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?
I want to list all installed packages by keyword. For example I want to know what packages were installed related to "game". How can I do that in Fedora?
I tried 'yum list installed', 'you search' ... but still can't find a solution. I'm not a yum expert .
I've set up a sandisk usb stick to boot/install 11.04. On two eepc netbooks I get the same issue when I try to boot from the usb: SYSLINUX 3.63 Debian 2008-07-15 EBIOS Copyright 1994-2008 H Peter Anvin Unknown keyword in the configuration file
I'm working on RHEL5 dealing with AS (ActionScript) files in Linux GVIM Editor but everything is in blue color. Can i set color coding for my keywords?
I need to write a script that can search up to 3 parameters and find all files containing those words. then display them and the amount of hits it got.if the first parameter exists, then we can assume we are looking for the word supplied.if the second parameter exists, then we are looking for files with both keywords.if third parameter exists test the second parameter for the values ('and', 'or', '-v') and search accordingly. These are the only values accepted as the the second one when 3 parameters are present.
lastly, if there are zero or more than three parameters echo as an error and when 3 parameters have been entered we echo an error when the second parameter is not one of the following: 'and', 'or', '-v'.
recently got this message when USB booting:Unknown keyword in configuration file: gfxbootI used to have the "Unknown keyword in configuration file: ui" problem, which was spread throughout the forum. I know people have fixed it by removing the "ui" in the config file. This is what I did in /syslinux/syslinux.cfg
# D-I config version 2.0 include menu.cfg default vesamenu.c32
A few months ago I have setup a server with three hard disks. The partition mapping the disks as follows:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x7ca36fee
[code]....
Now I have the following problem the LVM file system don't mount properly.If I open the mount point I see only a few files of the LVM disk. If I want to unmount the disk I get the following error:
umount /data/ umount: /data/: not mounted
If I want to mount the volume I get the following error:
mount -a mount: /dev/mapper/gegevens-Data already mounted or /data busy
I'm having problems installing Ubuntu 10.10 Netbook onto my Asus 900. I downloaded the .iso then used the "make startup disc" feature in my Mint 9 desktop machine to make a usb install disk. All appears well at that point. When I try to boot from the usb stick, I get an error message as follows:
I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect the input from one to the other.And then when I type in /dev/pts/29 the characters I type should show up in /dev/pts/130. However what ends up happening is that every other character I type gets redirected.
I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, the server name is hardcoded (example: open connection to myServer.myCompany.com).
Is there any linux trick which I can use to redirect all requests for a certain host back to localhost? I know in Windows that I can add an entry to the hosts file and have it redirect back to localhost. How do I do this in linux?
My poblem: At work I have a proxy with some closed ports. I need to connect to an Oracle DB on some DB_IP at port 1521. DB_IP is a public IP. What I Have: At home, I have a Linux machine and a Linksys WRT54G Router. What I need: How can I do to communicate a PC at work with DB_IP:1521?
Although this is a basic stuff, but still i wonder. Consider these two examples. code...
I wonder, why doesn't redirection work in first case? when to use redirect and when to use pipes? I have been Linux for a long time, but still this basic stuff baffles me.
I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output to /dev/null. I couldn't find it in the wget manual.
i have installed squid 2.6 on my centos. i have writen a shell script to ping a network and write to a file. write '1' if network up and '0' if network down. After that,a perl script will read the file and do the redirection.Perl will redirect to a fix URL [URL] if the network down and do nothing when it up. i have put my perl script in squid.conf at url_rewrite_program /my_file_path.
below is my shell script for pinging:
Quote:
#!/bin/bash while [ 1 ] do HOST=143.148.137.134
[code]....
My problem is client browser are not redirect to www.google.com even the network is down. It should go to the fix URL when the user click any URL in network down situation.it just appear cannot resolve host.
The serial console is for debugging and will physically disappear when product is mature. However, there are many background processes that may print out statuses/results. These go to /dev/console or serial console. Telnet will be the only way to get a console. I tried netconsole (with netcat) and it works, but it is only for kernel printk messages. I tried "program > /dev/pts/0" and it works also. it would be better if I can just change/add the console /dev/pts/0 to the existing /dev/console.
We installed the apache server on oraapps.yan.com. we are planning to use as a proxy server.we have 4 servers inlcuding oraapps.yan.com. Each of them has 3 or more applications. I would like to redirect them to oraapps.yan.com. is it possible. if its how to do that.