First  |  Prev |  Next  |  Last
Pages: 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
special variable $@ and $*
Hi, http://tldp.org/LDP/abs/html/internalvariables.html#APPREF I did not understand the difference between $@ and $* special variable. Please explain me with an example. $* All of the positional parameters, seen as a single word $@ Same as $*, but each parameter is a quoted string, that is, the ... 6 Dec 2009 05:13
unpack a gz file
Okay, I'm trying to reinstall MySQL. I downloaded it via curl. I got mysql-5.1.33.tar.gz in my directory. I try to unpack it and I get an error. I guess it really isn't a gzip file? Is there any other way to unpack it? Do I have to change the permissions? They are -rw-r-- r-- 1 0 0 2079 Dec 4 22:45 mysql... 6 Dec 2009 03:05
the difference between two forms of logic and
The following function is another pushd. If the && were replaced by -a in the pointed line, a error would come. What's the difference between && and -a? pushd() { if [ $(echo $1 | grep '^+[0-9][0-9]*$') ]; then # case of pushd +n: rotate n-th directory to top let num=${1#+} getNdirs $num DIR_STACK="$... 15 Dec 2009 00:18
why is echo different?
IFS=: echo $IFS # the result is space echo "$IFS" # the result is : Is there any difference between $IFS and "$IFS" ... 2 Jan 2010 13:53
on Mac with Leopard need to set the .cshrc path to use GNU UNIX dev tools
On 2009-12-03, JRough <jlrough(a)yahoo.com> wrote: I think I need the Mac UNIX development tools from GNU so I can execute mySQL. The instructions say to add something to the .cshrc path. I don't know if I should add it to the .bash_login path or how to find the .cshrc path? Are you using csh? If not, y... 3 Dec 2009 17:07
touch to strip extension with xargs
On 3 dic, 14:13, Atropo <lxvasq...(a)gmail.com> wrote: Hi all, a find command feeds me with filenames and  I want to touch those filenames stripping the extension and giving new one. i know i can with variable  ${filename%.*}  have the filename without extension but don't know how to implement on xar... 3 Dec 2009 15:59
touch to strip extension.
Hi all, a find command feeds me with filenames and I want to touch those filenames stripping the extension and giving new one. i know i can with variable ${filename%.*} have the filename without extension but don't know how to implement on xargs. find | awk '{print $9}' | xargs -I 'nww' cp -p nww nww%.*.H... 6 Dec 2009 13:55
ls with creation time
Hi All, I want to execute ls <filename> with a switch that should fetch all files created with that name and are older than one day. Pls help TIA ... 6 Dec 2009 13:55
Strip path to get filename
The output of a command is this /opt/kirkby/gcc-4.4.2/lib/libgcc_s.so.1 how can I strip off the path, and so just get the 'libgcc_s.so.1' ? I guess I need to strip from the first character, to the last '/', but are not sure how to do this. Dave -- I respectfully request that this message is not archive... 20 Dec 2009 04:56
Nail mailrc save/write 'no active mailbox'
I can w 'dog' dog.file manually from inside nail but if I do it in mailrc I get 'cannot execute write without active mailbox' I did this a decade ago by somehow moving my mail from virtual IMAP cache space to a hard file.. it may be as simple as mbox ~/mbox in mailrc but I don't remember and have no records... 29 Nov 2009 03:41
First  |  Prev |  Next  |  Last
Pages: 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58