comp.unix.shell
  Home FAQ Contact Sign in
comp.unix.shell only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.unix.shell Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  if diff -q 1.tgz 2.tgz         


Author: mathieu
Date: Jul 23, 2008 05:36

Hi there,

I am writting my very first shell script, and I do not understand
why this does not work:

if diff gdcmData.tar.gz current.tgz >/dev/null
then
echo "There is a diff, need to upload"
else
echo "There is no diff no need to upload"
fi

when run in a shell script the 'else' is executed, while from the
command line I can see that there is a diff, so the return value is !=
0

thx
no comments
  finding filenames with 2 or more dots         


Author: paris2venice
Date: Jul 23, 2008 04:54

I'm looking for files in a directory hierarchy that have filenames
such as:

one.two.three.ext

but specifically those that have more than one dot in the name.
This is what I tried but it didn't work (it found one but not all --
inexplicably):

find . -name "*.\.*.\.*"

What do I need to change to get this to work?

Thanks.
1 Comment
  How to rename a process         


Author: andyhaupt
Date: Jul 23, 2008 04:36

Hello,

is it possible to rename the sub process of a shell?

Example: assume there's a script foo.sh which starts a background
process (kept simple here just to get a nice example)

#!/bin/sh
(sleep 20; sleep 10)&
echo "exiting $0"

when you check the process tree you'll find
UID PID PPID C STIME TTY TIME CMD
andy 125 124 0 13:26:29 pts/54 0:00 sleep 20
andy 124 1 0 13:26:29 pts/54 0:00 /bin/sh foo.sh
(this is on Solaris)
i.e. there is a sub process named after the originating shell script.

Instead of seeing /bin/sh foo.sh in the process table I would like
to have some other name, say foo_child, to appear.
Is that possible?
The example is a Bourne shell script, maybe another shell would do?

Of course I could put the code into a separate file and call that but
that is not what I want , it's basically about renaming $0 on the fly.
Show full article (0.90Kb)
no comments
  action of the world design         


Author: sex
Date: Jul 23, 2008 03:18

action of the world design
***********************************
http://indianrailroads.blogspot.com
no comments
  Glamour models & Fasion designing New look watch my profile http://namithawithyou.blogspot.com/         


Author: hot jaya
Date: Jul 23, 2008 03:10

Glamour models & Fasion designing
New look

watch my profile

http://namithawithyou.blogspot.com/
no comments
  puma shoes         


Author: jumpmanlocker4
Date: Jul 23, 2008 02:23

welcome to visit www.jumpmanlocker.com.cn
air max 87 89 90 95 ltd timberland jeans ugg boots lacoste sandals
hoodies,
t-shirts, mauri shoes, dsquared , hogan shoes, dunks , red monkey,
polo t-shirts,
evisu jeans, bbc jeans , dior, lv, dg, versace, coach puma shoes, nfl
jerseys
shox r2 r3 r4 r5 r6 tn tl1 tl3, sandals, nhl jerseys, mlb jerseys,
nba
jerseys
probowl jerseys,prada shoes,kobe james, hockey jerseys, nfl jerseys,
football
jerseys, baseball jerseys, jordan shoes, jordan fusion air force ones
25 years
basketball jerseys Men's women's shocks OZ NZ TL shoes Discount
Coach
Sandals,
Dior Sandals, Prada Sandals, Chanel Sandals, Versace Sandals, Crocs
Sandals,
Women's Sandals Men's Slippers From China jordan shoes, jordan fusion ...
Show full article (1.10Kb)
no comments
  Finding hard links ?         


Author: Guillaume Dargaud
Date: Jul 23, 2008 02:04

Hello all,
when I have a file that is hard linked multiple times, how can I find which
directory entries are the other links ?

I believe for soft links, the answer is "you can't unless you do an complete
search on all mounted filesystems". But I'm sure there's a simple solution
for hard links, right ?
--
Guillaume Dargaud
http://www.gdargaud.net/
"Blessed are the meek for they shall inhibit the earth."
7 Comments
  extract the first number of of a file         


Author: wong_powah
Date: Jul 22, 2008 17:22

How to extract everything up to and including the first number of each
line of a file?
e.g.
input is:
Jan. 02, 2008 Electronic Funds Transfer PREAUTHORIZED DEBIT ADT
SECURITY SERVICES CANADA $26.50 ...
Jan. 02, 2008 Electronic Funds Transfer PREAUTHORIZED DEBIT TD
GEN INS $66.25 $1,815.92
Jun. 02, 2008 Electronic Funds Transfer PREAUTHORIZED DEBIT EXT
TFR CUSTREQ CIBC direct banking division $1,000.00
Jun. 09, 2008 Point Of Sale or Debit Card RETAIL PURCHASE
060800015251 PHO BO GA $16.25 ...
Jun. 24, 2008 Cheque or Preauth. Debit CHEQUE 060 12285506 $100.00
$5,752.13
Jun. 25, 2008 Internet Banking INTERNET BILL PAY 000000483056
MASTERCARD CANADIAN TIRE $13.39 $5,738.74
Show full article (1.31Kb)
2 Comments
  How come "//" is also root in bash?         


Author: PengYu.UT
Date: Jul 22, 2008 15:40

Hi,

I don't understand why bash also use // to represent root. Shouldn't
bash only show the canonical form '/'? Is it a bug in bash? Or it is
supposed to do that?

Thanks,
Peng
Show full article (0.90Kb)
6 Comments
  Paste is too slow on vi..         


Author: kmgvasanth
Date: Jul 22, 2008 15:01

Hi,

When I paste any content in vi editor it is taking lot time. Its
happening if the paste content is having braces (). after it displays
closing brace ")" in screen the cursor is going back to the respective
opening brace.

Any idea how to get rid of it. This is happening in HP unix.

$ uname -a
HP-UX cxyz B.11.11 U 9000/800 2340697133 unlimited-user license

Thanks in advance,
2 Comments
 
1 2 3 4 5 6 7 8 9