10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello Everyone,
Coming again for your help to solve the below error:
In a script, i had created a temp table (Temp_table) and loaded the data in it using bcp command (performed successfully) and I wanted to move it to the preferred table (called Main_table) for further use. hence I have added... (7 Replies)
Discussion started by: Suresh
7 Replies
2. Shell Programming and Scripting
Hello Everyone,
Coming again for your help to solve the below error:
In a script, i had created a temp table (Temp_table) and loaded the data in it using bcp command (performed successfully) and I wanted to move it to the preferred table (called Main_table) for further use. hence I have added... (1 Reply)
Discussion started by: Suresh
1 Replies
3. Shell Programming and Scripting
Dear Team
/app/Appln/logs/
echo Session used server are 'grep -i pid|grep -i session | cut -d'.' -f1 | awk '{print $9}' | sort | uniq'
Output -
lxserver01
lxserver02
lxserver03
When I grep session pid in logs server details I can see above distinct server details but I... (6 Replies)
Discussion started by: skp
6 Replies
4. Shell Programming and Scripting
Hi,
I don't understand && and || in this context. I thought && is for logical 'AND' and || is for logical 'OR'.
&& echo "Not empty" || echo "Empty"
Please help
Thank You (5 Replies)
Discussion started by: TomG
5 Replies
5. Shell Programming and Scripting
I am trying to run a unix script in my home directory.Snippet below
echo "`date '+%Y%m%d_%H%M%S'` Getting ProductList.dat"
if ( -f $DIR/ProductList.dat) then
cp $DIR/ProductList.dat MigratedProductList.dat
else
echo "`date '+%Y%m%d_%H%M%S'`ProductList.dat does not exist; Processing... (4 Replies)
Discussion started by: Mary James
4 Replies
6. UNIX for Dummies Questions & Answers
Hi friends,
I am unable to find for loop or while loop syntax on ksh shell,same syntax is working in other shell ,please suggest a way through.
error :syntax error at line 2: `(' unexpected
syntax used : for ((i=1;i<=$v1;i++))
thanks,
Jcpratap (9 Replies)
Discussion started by: Jcpratap
9 Replies
7. Shell Programming and Scripting
Hi I am trying to execute the following awk script in unix but getting
the following error
awk: syntax error near line 1
awk: bailing out near line 1
for i in `cat search`
do
grep -i -l $i *.sas | awk -v token=$i '{print token "\t" $0}'
done
Please let me know what could be the... (4 Replies)
Discussion started by: nandugo1
4 Replies
8. UNIX for Dummies Questions & Answers
I know this should be simple, but sorry I am fairly new to UNIX and can't find the syntax to make this work.
I have the following two commands in a script:
x=`expr $(head -1 filename.ext | cut -c16 | grep | wc -l) + 16`
del=`head -1 filename.ext | cut -c$x`
This works fine as I expect... (2 Replies)
Discussion started by: DJR
2 Replies
9. UNIX for Dummies Questions & Answers
hi All,
how can i make my own commamnds for unix shell scripts.
lets xmple..
1-i want to use "down arrow key" for previous runned unix commands.
then how to acheive it.
2-Generally TAB --- complete filename or command up to the point of uniqueness ..but here its not working ..
I m new to... (1 Reply)
Discussion started by: pradeepcarya
1 Replies
10. HP-UX
An outside vendor has staged 2 batch files for us and I've tried to retrieve the files using the commands that they've indicated I could use to retrieve one file at a time. I've tried using this command in a shell script after a successful connection to their server:
get "$$ ID=IL096869 BID='PGP... (2 Replies)
Discussion started by: mheinen
2 Replies