|  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11
search uid
I want to serach in a directory and all sub-directories if a UID exits that has 452. How can I do that? ... 13 Aug 2010 16:51
Newbie: Perl how evaluate files newer than an hour within ftp
Hi all, i have this simple script to check if a file has arrive since the last hour find2perl tmp -type f -eval '-M $_ < 1/24' -print |perl but now i would like to check in a remote server, maybe on ftp session. i have this ftp.pl perl -w >> ftp.log -MNet::FTP -le' ($second, $minute, $hour, $dayOfMonth, $m... 13 Aug 2010 13:35
copy and comp commands
I'm trying to remember what commands are available for comparing and updating directories on multiple machines. I'm thinking rcomp or xcomp and something like xcopy but can't find anything. Sux getting old.... thx ... 13 Aug 2010 12:29
awk script to split text file content to multiple files
I have an input text file like this. ------------------------ DEFINE QLOCAL ('Q1') + ... number of lines ... REPLACE DEFINE QLOCAL ('Q2') + ... number of lines ... REPLACE DEFINE QALIAS ('A1') + ... number of lines ... REPLACE DEFINE QAL... 12 Aug 2010 22:27
gnu-make prerequisites
For a given makefile, how to list the pre-requisites for a particular target without modifying the makefile? TIA -jl ... 12 Aug 2010 22:27
ERR trap
Suppose I want to bail out of a script if any command exits with a non-zero status. AND, I want to know what line caused the problem. set -e will do it, but who knows what line aborted? trap 'echo $LINENO' ERR doesn't help either, because it reports the trap line, not what caused the trap. -- ... 13 Aug 2010 14:40
download basics
is there a way to tell lynx or somebody to execute something like http://www.vim.org/scripts/download_script.php?src_id=12904 so that bufexplorer.zip winds up somewhere i can find it? wget doesn't understand what to do with php, or something any help will be appreciated ... 12 Aug 2010 14:46
vi key bindings
in the output of bind -P what does beginning-of-line can be found on "M-OH", "M-[H" precisely which key sequences are these? M-OH", "M-[H" ... 13 Aug 2010 03:50
hostname and DNS
What makes /bin/hostname use an old DNS name instead of the name that / usr/bin/dig displays? I have a script which uses $( hostname -s ) to obtain the hostname. Even though the DNS update was done at least a month ago, /bin/hostname continues to provide the name that I don't want. I also have the hostname defin... 13 Aug 2010 04:53
Search for 2 strings
Hi I have a file containing 2 words on 2 seperate lines: e.g. car bike I want to pipe this file through sed or awk, and only return the output only **both** words are found. Could someone help me do this? As they are on different lines grep wont work. Thanks ... 11 Aug 2010 16:56
ssh and passing second arguments through awk
All bash-2.03$ cat /tmp/output/1settmp I have entries like the above in the file /tmp/output/1settmp In the above file I have to take the first column entry(IP) and ssh into that and has to ping the corresponding second column ip Wrote a script like... 13 Aug 2010 05:57
mktemp for directories
>>>>> "John" == John Kelly <jak(a)isp2dial.com> writes: John> It doesn't need to be universally portable. It just needs to work on John> the platforms I'm interested in. Might help if you listed precisely what those are, so we don't have to keep guessing. -- Randal L. Schwartz - Stonehenge Consulting Servic... 12 Aug 2010 11:28
sed and quoting issue
Hello, I'd like to execute it: sed -e "s#\(^\.INCLUDE[ \t]*\"\).*\(noMisMatch\)#\1$MODEL_DIR\2#g" totoFile > titiFile The problem is coming from \" which generate an error. The first pattern i would like to catch is: .INCLUDE " which is in regexp \(^\.INCLUDE[ \t]*\"\), but " is generated problem with sed ... 11 Aug 2010 13:38
mktemp for directories (was: $RANDOM)
John Kelly <jak(a)isp2dial.com> writes: Interix has no "mktemp -d" utility. Does the GNU “coreutils” compile for Interix? That will provide 'mktemp' with '-d' feature. So I thought of reading a few characters from /dev/urandom to get what I want. But I wonder, is /dev/urandom available on most platforms... 11 Aug 2010 00:37
Interix has no "mktemp -d" utility. I could loop a "mkdir /tmp/$RANDOM" until I find a directory name not already taken, but I'd rather have some alpha characters in the string, like "mktemp -d" produces. So I thought of reading a few characters from /dev/urandom to get what I want. But I wonder, is /dev/ur... 13 Aug 2010 14:40
removing files
I have a folder with a bunch of sub folders. I am trying to run a script to remove all the files in the folders and sub folders. I don not want to remove the directories. ... 11 Aug 2010 09:15
Generating data depending upon the given size
Hi All, Just wanted to know if we can generate data with given input size with the help of shell script. Any idea from our group? If we specify 5mb as file size then we need to generate test data for 5mb. If you have any valuable suggestions please let me know and also any alternative way to do this. Thanks i... 13 Aug 2010 05:57
#!/bin/sh 2>&1 |tee -a /tmp/logfile
Hi, would you please help with file descriptor manipulation? I tried to manifest what I want to do in the subject line. In order to log the output of my /etc/init.d/local I'd like to be able to have a script output to both the screen and append to a logfile. But I'll need a header part and a tra... 10 Aug 2010 08:00
find the last file containing a particular string
This should be really easy but I am perplexed. I have a directory with about 500-600 files with filenames in two different name formats. The files are either named according to yymmdd i.e. 100809 or yymmdd.ext i.e 100809.txt -- how can I find the last occurrence (by the date found in the filename) of a particu... 10 Aug 2010 11:21
 |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11