10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I know this isn't exactly a shell script question but I'm not sure where else to post it.
I am running a java program out of a shell script. There are times when I get an error like,
"java.lang.ArrayIndexOutOfBoundsException: 22
at blah, blah
at blah, blah
... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
2. Shell Programming and Scripting
I have the below two commands in my script.
tar -xf hello.tar
unzip -o tempp.zip
When i run the script i see the below on my standard out.
How can i suppress output coming from both the tar and unzip on my standard output. (3 Replies)
Discussion started by: mohtashims
3 Replies
3. Shell Programming and Scripting
Hi,
I was looking for a simple code to suppress the text between 2 characters. the characters can be of same kind like "*" or "(" and ")". The number of characters are not consistent and could vary.
How can I suppress the text between 2 characters?
Example:
Input : Hello (Within Bracket)... (8 Replies)
Discussion started by: ahmedwaseem2000
8 Replies
4. Shell Programming and Scripting
Hi Team ,
I want supress the meaning of * while passing it as parameter.
I have file which contains file format and destination directory.
let say abc* |/home/xyz
I had function which will read these values and pass it to another function.
Code looks like below
func1 ()
{... (6 Replies)
Discussion started by: gvkumar25
6 Replies
5. Shell Programming and Scripting
Hello
I have a csv file which I need to insert addtional commas into. The csv is of the format
field1,field2,field3,field4,...etc...,field13,field14
I need to add extra commas in each record so that the final output looks like
... (1 Reply)
Discussion started by: kamal_p_99
1 Replies
6. Shell Programming and Scripting
Hi
I have a script which connects to oracle using sqlplus
if ! check_sqlplus "$ORACLE_SID" ; then
echo "Unable to use sqlplus for sid $ORACLE_SID"
return 1
else
echo "attempting to connect to database"
echo $ORACLE_HOME
echo $ORACLE_SID
echo "Status before entering... (2 Replies)
Discussion started by: xiamin
2 Replies
7. Shell Programming and Scripting
Hi
I am working in ksh and getting the trace after trying to remove the file which in some cases does not exist:
$ my_script
loadfirm.dta.master: No such file or directory
The code inside the script which produces this trace is the following:
] || rm ${FILE}.master >> /dev/null
for... (3 Replies)
Discussion started by: aoussenko
3 Replies
8. UNIX for Advanced & Expert Users
Hi All
this is a simple script
#! /bin/bash
FileCnt=`ls -lrt $DIR/* | wc -l`
echo $FileCnt
how could i escape the error msg if there are no files in $DIR
ls: /home/sayantan/test/files/cnt/*: No such file or directory
0
Looking forward for a quick reply
Regards, Newbie (2 Replies)
Discussion started by: newbie07
2 Replies
9. UNIX for Advanced & Expert Users
Hi,
One of our application is producing log files. But if we open the log file in vi or less or view mode, it shows all the special characters in it. The 'cat' shows correctly but it shows only last page. If I do 'cat' <file_name> | more, then again it shows special characters.
... (1 Reply)
Discussion started by: divakarp
1 Replies
10. UNIX for Dummies Questions & Answers
I need to suppress the output to the screen. I am appending to a file so do not need the output on the screen in the CLI environment.
eg.
cat $HOME/somefile >> $HOME/anotherfile
I am doing this a number of times with SQL output files so I can look at the finished file not on the screen in the... (3 Replies)
Discussion started by: jagannatha
3 Replies