10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
I am trying to... (1 Reply)
Discussion started by: pradeepp
2. Shell Programming and Scripting
I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date
for s in server ; do
ssh -T $s <<-EOF
echo... (7 Replies)
Discussion started by: raj48
3. UNIX for Advanced & Expert Users
I am receiving Fixed blocked file from AS/400 system to my unix box. Could you please advise us how to convert this fix blocked file to variable blocked file. Do we have any command in Unixt or program.
I am new to this Unix system
Thanks & Regards,
Colam (1 Reply)
Discussion started by: coolmaninit
4. Shell Programming and Scripting
I have used a bash script which ultimately converts a string into date using date --date option:
DATE=$DATE" "$TIME" "`date +%Y` //concatenating 2 strings
TMRW_DATE=`date --date="$DATE" +"%s"` //applying date command on string and getting the unixtime
Please use code tags... (7 Replies)
Discussion started by: Rashu123
5. Shell Programming and Scripting
I read 3 variables from from Inputfile.txt the third one "startnumber" is a number when i compare it with 9 ($startnumber -le 9) it give's me a "unary operator expected", i know that -le is for number comparison. What i need is to convert $startnumber to integer (i have try to do it with expr but... (8 Replies)
Discussion started by: marios
6. Shell Programming and Scripting
can anyone help with a script to convert hex to binary digits, and break the 32 bit binary into packs of 4 and send them to 8 different variables.Any help is sincerely appreciated.
Its in korn shell...... (24 Replies)
Discussion started by: venu
7. Shell Programming and Scripting
I have a the creation date of a file stored in a variable in the following format:
Wed May 06 10:14:58 2009Is there a way I can echo the variable and display it in epoch time?
I've done a lot of searching on this topic, but haven't managed to get a solution. I'm on Solaris 10.
... (2 Replies)
Discussion started by: Glyn_Mo
8. Shell Programming and Scripting
I have a variable say var1 (output from somewhere, which I can't change)which store something like this:
how can I make the variable $name, $age, $address and $password contain the info?
I mean do this in a... (1 Reply)
Discussion started by: freddy1228
9. Shell Programming and Scripting
I have a variable in a shell script which holds let say n paarmeteres with space separate them :
$var = par1 par2 par3 par4 parn;
so if I print this variable this is what I'll see:
par1 par2 par3 par4 parn
I need to insert each parameter to an array , so I can go over on each... (3 Replies)
Discussion started by: Alalush
10. Shell Programming and Scripting
I am a newbie to programming on the unix Command Line*, and was wondering how you take what a user types in and convert it into a variable to be used in the script?
*I always used it for file editing, but nothing more. Then I began to use BBedit.
:confused: (1 Reply)
Discussion started by: signebedi