|
|
Up |
|
|
  |
Author: mathieumathieu
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
|
|
  |
Author: paris2veniceparis2venice
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 |
|
  |
Author: andyhauptandyhaupt
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
|
|
  |
|
|
  |
|
|
  |
Author: jumpmanlocker4jumpmanlocker4
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
|
|
  |
Author: Guillaume DargaudGuillaume 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 ?
|
| |
|
7 Comments |
|
  |
Author: wong_powahwong_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 |
|
  |
Author: PengYu.UTPengYu.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 |
|
  |
|
|
  |
Author: kmgvasanthkmgvasanth
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 |
|
|
|
|
|
|