10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
I got a csv with pipe delimted file and i want to check second column of the file has any alpha character becuase I am expecting only number in that,
and if any alpha characters then it should throw an error
Thanks in advance (1 Reply)
Discussion started by: Rizzu155
1 Replies
2. Shell Programming and Scripting
Hello fellow UNIX gurus :)
I have a problem regarding the script below:
# Variables used in this shell.
power=0 # Stores squared integer
total=0 # Sum of all squared integers
num=0 # Stores command line arguements
# Provides error handling if command line... (5 Replies)
Discussion started by: Learn4Life
5 Replies
3. Shell Programming and Scripting
Below code works for different databases i.e. MYSQL and ORACLE
The problem is for MYSQL in Block: if ; $? taking value accordingly but in case of ORACLE $? is always taking this value as zero (0).
That is the reason in Oracle it always going in else Block in any case.. :(
and in case of ... (4 Replies)
Discussion started by: ambarginni
4 Replies
4. Shell Programming and Scripting
I am creating a script to run the SysInfo tool under HPUX servers, this is my script!
#!/usr/bin/ksh
#
# Date: February 29th 2011
#
#Definicion de variables
PATH_TMP=/home/eponcede
> HPUX_SysInfo.log
for host in `cat $PATH_TMP/servers/host_hp2_test`
do
echo... (2 Replies)
Discussion started by: eponcedeleonc
2 Replies
5. UNIX for Advanced & Expert Users
Hi All,
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
Take 1:
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
Take 2:
$ gzip test.txt
$ ll test.txt.gz
$ 133 test.txt.gz
As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies
6. Shell Programming and Scripting
Helo Experts,
I need a help in handling errors in shell script, wants my errors displayed in text file instead of command window..
My shell script is here;
cd /cygdrive/s/Files
for FILES in ./*.*
do
temp=`basename $FILES`
if cp $FILES /cygdrive/r/CopyFile1/$FILES; then
echo "copy... (5 Replies)
Discussion started by: CelvinSaran
5 Replies
7. Shell Programming and Scripting
Hi ,
Can any one tell me is there any standard method to track errors during sftp ?
using which command i can track sftp errors ? i tried using echo $? .
Most of the times i am getting error number 127 ,1, 255. whether it is constant numbers ?
Please help me out. Thanks in advance (2 Replies)
Discussion started by: deepusunil
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am getting this error
gunzip file1.tar.Z
gunzip: file1.tar.Z: not in gzip format
Any clues? This goes bad only in some recent installations of ids (5 Replies)
Discussion started by: eagercyber
5 Replies
9. AIX
I have two huge files on AIX Ver 5.0. File size of each file is 6238884375 bytes. There is huge difference in sizes when I zip them by gzip coomand.
File1.gz 586147513
File2.gz 547585695
Any idea why it is so?
Thanks
Sumit (2 Replies)
Discussion started by: sumitc
2 Replies
10. Shell Programming and Scripting
Have an issue with the following snippet of code, in particular the execution of the `gzip -9 ${ARCHIVE_FILE}`.
It is failing with a ReturnCode of 1 - Can anyone lead me to a souce that identifies & describes what RC's there are for gzip, as I've not been able to find any.
echo '-- TARing up... (1 Reply)
Discussion started by: Cameron
1 Replies