10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
My input file contains
1,2
2,4
3,6
4,9
9,10
My expected output is
1,10
2,10
3,6
4,1
9,10 (6 Replies)
Discussion started by: pandeesh
6 Replies
2. Shell Programming and Scripting
Why I get bad replace when using eval?
$ map0=( "0" "0000" "0")
$ i=0
$ eval echo \${map$i}
0000
$ a=`eval echo \${map$i}` !!!error happens!!!
bash: ${map$i}: bad substitution
How to resolve it ?
Thanks! (5 Replies)
Discussion started by: 915086731
5 Replies
3. UNIX for Dummies Questions & Answers
The task: remove undesirable characters from filenames.
Restrictions: Must use basic RE, base utilities (non-GNU) and /bin/sh (ash). No ksh, zsh, perl, etc.
Below is what I've come up with. It seems to work OK but I'm open to shorter, more efficient alternatives.
Inside the square... (4 Replies)
Discussion started by: uiop44
4 Replies
4. Shell Programming and Scripting
Hello All,
I am new to this forum, and the reason I came here is to seek solution from the experts.
I have written following wrapper script, it was running fine from past couple of months, until last week.
When one of the function in the script which suppose to login through ssh to the... (2 Replies)
Discussion started by: tajdar
2 Replies
5. Shell Programming and Scripting
Hi,
This is the Third thread i'm putting here for the same problem. :(
Actually, i'm trying a script like this.. but its taking a long time.. about 3 days to complete fully..
#!/bin/ksh
if
then
exit 1
fi
while read i
do
while read j
do
field7=`echo $j|cut -d "|"... (12 Replies)
Discussion started by: RRVARMA
12 Replies
6. Shell Programming and Scripting
Hi,
I have a script xyz.ksh which accpets two parameters the format of first one is :X_TABLENAME_Y and second one is a digit. I can extract a table name from that parameter and store it in a variable var_tblnm, so if i pass a parameter X_TABLE1_Y the value in var_tblenm is "TABLE1"
now i have... (1 Reply)
Discussion started by: hcdiss
1 Replies
7. Shell Programming and Scripting
I have a tab delimited HUGE file (13 million records) with Detail, Metadata and Summary records.
Sample File looks like this
M BESTWESTERN 4 ACTIVITY_CNT_L12 A 3
M AIRTRAN 4 ACTIVITY_CNT_L12 A 3
D BESTWESTERN FIRSTNAME LASTNAME 209 N SANBORN AVE
D BESTWESTERN FIRSTNAME LASTNAME 6997... (25 Replies)
Discussion started by: madhunk
25 Replies
8. Cybersecurity
Is there of a scheme for discovering badly chosen user passwords from a Unix password file?
Im not learning anything bad or trying to hack,this a question that was given to me in an information security seminar.
Would password cracker be a correct answer? (1 Reply)
Discussion started by: jodders
1 Replies
9. UNIX for Dummies Questions & Answers
Well, I hope this way you will respond to my inquiries.
I have 4 unix servers,with static ips (though i dont think this is an issue)....i can telnet and rlogin from one to the other....if i FTP from on et othe other and try to execute :
cd /user return
/user : no such file or... (1 Reply)
Discussion started by: BAM
1 Replies
10. UNIX for Dummies Questions & Answers
hi,
what i want to do is to convert all the txt file under my directory to the properties file using the native2ascii command.
however, when i run my script, i got bad substitution error. what's wrong with my script ? pls help. thanks
#!/bin/sh
curDIR=`pwd`
oldExt='txt'... (10 Replies)
Discussion started by: champion
10 Replies