how to search text in subdirectories I want to find a word in a text file but I want to search for this info in a whole directory which also has sub directory. I want to avoid using this: grep data file1 grep data file2 grep data file3 ... 1 Jul 2010 23:20
tcsh: Completion with files AND a list or words Hi out there! I try to use the 'complete' function to create autocompletion with files and a wordlist from a variable: set cmdCmpl = (this that) complete cmd 'p/*/$cmdCmpl/' 'n/*/f/' But this only created completion with members of $cmdCmpl. Is there any chance to combine the word list and the file list? b... 11 Jun 2010 05:57
using cat and << Hi All When using indent program to reformat shell program as below. how to using cat << as normal ? k=1 if [ k != 0 ] ; then cat <<-EOF Hello World. EOF fi test_eof.ksh[2]: 0403-057 Syntax error at line 2 : `<' is not matched. ... 29 Jun 2010 19:37
number of files in directory I have a directory with a bunch of subdirectores. how can count the number of files in the subdirectories using the wc - l and provide me a listing like directory1 12 (files) dircetory2 15 (files) etc.. regards Roger ... 10 Jun 2010 15:40
Simple hack to get $500 to your home Simple hack to get $500 to your home at http://ukfullenjoy.co.cc Due to high security risks,i have hidden the cheque link in an image. in that website on left side below search box, click on image and enter your name and address where you want to receive your cheque.please dont tell to anyone. ... 10 Jun 2010 09:59
Removing pwd directory and su and cd .. issue Hi, I'm wondering with this (I'm with bash 4.1.5(1)-release): machine:~$ mkdir prueba machine:~$ cd prueba machine:~/prueba$ rmdir ~/prueba machine:~/prueba$ su ContraseƱa: shell-init: error al obtener el directorio actual: getcwd: no se puede acceder a los directorios padre: No existe el fichero o el direc... 2 Jul 2010 13:31
setuid question - permission denied Hi all, In this directory, there's the following permissions: $ ll -d scripts/ drwxr-xr-x 3 lp users 4096 2010-06-08 23:10 scripts/ In scripts directory, there's the 'xx.sh' script (just performs ll on directory) scripts$ ll xx.sh -rwsrwx--x 1 root root 6 2010-06-08 16:23 xx.sh The partition where this d... 11 Jun 2010 13:40
Where is the document for /dev/fd/0? I'm on ubuntu linux. Although there are many webpages that discuss / dev/fd/0, but I'd like to read the man page in linux. Does anybody know if there is a man page for /dev/fd/0? ... 11 Jun 2010 09:12
how to optionally silence lines in script I have a shell script that executes several commands in sequence, all of which, by default, produce a lot of output, both to stdout and stderr. These commands are heterogeneous, and therefore do not have a common mechanism for specifying verbosity levels; in fact, for some of them, there is no such mechani... 9 Jun 2010 14:12
fgrep,grep and egrep Hi, can someone explain me about the usage of grep , fgrep and egrep with examples. In what contexts i should use this. Please guide/suggest Thanks and Regards, Kaushal ... 9 Jun 2010 04:16 |