|
First
|
Prev |
Next
|
Last
Pages: 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
newbie qn: shell program to copy files from one directory on the server to a remote windows machine on the same network I am stuck guys. may you help with how to program a linux shell script that copies files/folder from the local file system to another location on the local machine or a remote windows machine. additionally, this might need to be a cron task that runs once every week. thanx in advance!! ... 2 Sep 2006 06:14
find command, -prune question Hi, Im having problem in using find esp the -prune I want to find txt files from the path from the command line input but I dont want to get the txt files from path given on the second argument so it will be like this ./script /$HOME /$HOME/notthis and my script is about like this find $1 -name "*.... 2 Sep 2006 12:36
Run a PL SQL Package from a shell script Hi i am new to unix shell scripting , I was successful in executing a shell script that displays records of a table. I want to execute a PL SQL package. This is how I tried. in scrip1.ksh But executing the below i get an error "unknown SET option" echo "set serveroutput on\nset timing on\execute Package.Procedu... 2 Sep 2006 18:24
Timestamp as a one-line-variable Hi guys, Why doesn't this work for me: #!/bin/ksh stamp=`eval `echo date "+%d-%m-%y @ %T"`` echo $stamp sleep 2 echo $stamp sleep 2 echo $stamp sleep 2 echo $stamp sleep 2 ? How can I write a timestamp as a variable on one line? Thanks. ... 5 Sep 2006 08:51
What does IFS="${IFS}[]()" mean? Hi, I have a ksh script as below. jobs -l | while IFS="${IFS}[]()" read ... I know IFS is for Field Separator; However I can't understand what does IFS="${IFS}[]()" mean??? Can Anybody help me on above? ~Deepak ... 1 Sep 2006 06:51
sed - precutting str2 var from str1 input I am trying to accomplish a path truncate in bash, something like: str1=/dir1/dir2/file; echo $str1 | sed 's/\/dir1//' but I need "/dir1", for sed, to originate also as an input variable. How can I process that functionality in a sed line? thnaks for any hints TonyB -- __ __ _ I N C. ... 31 Aug 2006 23:32
How to sum csv column data in ksh Anybody have a simple way to sum (even average) column entries in a plain text csv file in a ksh environment e.g. example file, test.dat : 2 4 3 6 4 7 would produce 9 and 17 respectively for the sum and 9.00 and 5.67 for the average. TIA ... 29 Aug 2006 13:55
How to get 2 decimal places with bc? I'm trying to get two (2) decimal places in the code below with an accurate number of "43.21", but I only get "43.00". If I change "scale=2" to "scale=4", I get "43.2100". What do I need to do to get an output of "43.21"? Thanks. #!/bin/bash TOP=4321.0 BOTTOM=10000.0 RESULT=$(echo "scale=2;$TOP/$BOTTOM*100"... 28 Aug 2006 12:16
Newbie question: delete newline character with sed From: qazwart Date: Thurs, Apr 7 2005 9:20 am Email: "qazwart" <qazw...(a)gmail.com> Groups: comp.unix.shell Remember that sed has more commands in it than just "s" for substitution: sed '/^$/d' Any line that matches the pattern "/^$/" (blank lines) will be deleted from the input. If you want to delet... 26 Aug 2006 21:06
bash cp problem Hi I want to get rid of possible ampersands in files in a certain directory with sed. As i know so far i have to use the original file then write to a second file. As i want the original name i have to rename the generated files afterwards. That is what i am basically trying to do. Probabely i commit a mis... 27 Aug 2006 01:17 |