02-26-2009
I misunderstood your requirements. I now agree that you need to use $1 instead of $i or do:
i=$1
10 More Discussions You Might Find Interesting
1. Programming
Hai Friends
We have a function called char * crypt(const char *ps, const char* key) to encrypt the password in the unix environment.. Do we have any decrypt function to decrypt it? If not then how can we verify the password through program?
Thanks in Advance
Collins (1 Reply)
Discussion started by: collins
1 Replies
2. Cybersecurity
What attacks can a Unix box get through Javascript?
Is the Web Client secure against Javascript attacks if any?
Do we have a Trojan horse made in JavaScript? (3 Replies)
Discussion started by: netass
3 Replies
3. UNIX for Dummies Questions & Answers
UNIX script - problem.
I want the spaces in my Item variable to be replaced with a question mark. Can you tell me what I am doing wrong? This is the whole code line.
Item | tr -s " " "?"
Why is this not making any changes to the Item value?
Thanks for any help you can give!
tg (2 Replies)
Discussion started by: by_tg
2 Replies
4. Shell Programming and Scripting
Can someone tell me, how do i write a recursive code using shell ( eg like 'for' loop in C) which outputs the record to a database table as one row per iteration? (7 Replies)
Discussion started by: goutam_igate
7 Replies
5. Solaris
Hi,
How to use a function with passing value as a parameter in unix ?
With Regards (7 Replies)
Discussion started by: milink
7 Replies
6. Shell Programming and Scripting
I have a code like this
v_time=12:12:12
correctTimeFlag=$(echo $v_time|awk '{for(i=1;i<=NF;i++) if( $i ~ /::/){print i}}')
if
then
echo "correct"
fi
I need a equivalent function to replace the line
correctTimeFlag=$(echo $v_time|awk '{for(i=1;i<=NF;i++) if( $i ~... (3 Replies)
Discussion started by: swayam123
3 Replies
7. Shell Programming and Scripting
Hello there
i have a funny behiavor of the sort fonction, i try it out on different Solaris machine and i have the same issue.
So i would like to see if there is a rationel explanation
here is some data in a file:test.txt
,Test,RSD,RSD_Asset
,Test,RSD,RSD_Credit
,Test,RSD,RSD_Liab... (3 Replies)
Discussion started by: kykyboss
3 Replies
8. Shell Programming and Scripting
hi all,
i have large file. where i need the split the files into two files. can anyone tell me what is the command for that?
Unix OS :HP Unix.
Thanks,
arun. (2 Replies)
Discussion started by: arun888
2 Replies
9. Shell Programming and Scripting
Hi ,
I couldn't understand how this program works. Can somebody please explain it to me.
DT=`date -d "1 day"` # This part I understand
echo ${DT/ */} # How this works
echo ${DT/* /} (2 Replies)
Discussion started by: LoneRanger
2 Replies
10. Shell Programming and Scripting
Hi -
Have file1 which has the below date
08/31/2018
And also have file2 which has the below texts
ASOF:<CMODate>
FUND
I need to read the second file if it has colon (:) then move the date from first file to second file
like this
ASOF:08/31/2018
have used cut -d":" -f1 and moved the... (2 Replies)
Discussion started by: Mohan0509
2 Replies
LEARN ABOUT CENTOS
wnlicens
WNLICENS(7) WordNettm WNLICENS(7)
NAME
wnlicens - text of WordNet license
DESCRIPTION
WordNet Release 3.0
This software and database is being provided to you, the LICENSEE, by Princeton University under the following license. By obtaining,
using and/or copying this software and database, you agree that you have read, understood, and will comply with these terms and condi-
tions.:
Permission to use, copy, modify and distribute this software and database and its documentation for any purpose and without fee or royalty
is hereby granted, provided that you agree to comply with the following copyright notice and statements, including the disclaimer, and that
the same appear on ALL copies of the software, database and documentation, including modifications that you make for internal use or for
distribution.
WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.
THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY
OF EXAMPLE, BUT NOT LIMITATION, PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT- ABILITY OR FITNESS FOR ANY PARTIC-
ULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
TRADEMARKS OR OTHER RIGHTS.
The name of Princeton University or Princeton may not be used in advertising or publicity pertaining to distribution of the software and/or
database. Title to copyright in this software, database and any associated documentation shall at all times remain with Princeton Univer-
sity and LICENSEE agrees to preserve same.
WordNet 3.0 Dec 2006 WNLICENS(7)