Search Results

Search: Posts Made By: sai_1712
1,400
Posted By sai_1712
It's working... Thanks Ahamed..
It's working... Thanks Ahamed..
1,400
Posted By sai_1712
assinging the printf result to variables
Getting the below error while executing this. Able to run the below commands Individually.
#!/bin/bash
a=$(printf "%d\n" 0x01E);
b=$(printf "%d\n" 0x01A);
echo $a
echo $b
c=`expr $a - $b`
echo...
1,231
Posted By sai_1712
capturing the value in file before string(*) and the similar value in next line only
I've the output in the file like below. I want to capture the value in file before string(*) and the similar value in next line only.
cat test1.txt

0003 Not Visible (M) 0 00 ...
1,766
Posted By sai_1712
capturing the value in file before string(*) using sed
I am trying to capture the last value before the the * in test4.txt file using sed & tail (in this case 0FA). I got the output using the below steps.

P.s: The number of * in the file varies from...
38,670
Posted By sai_1712
The above code is working... Thank you all for...
The above code is working... Thank you all for your help!!!!!!!
38,670
Posted By sai_1712
2.03.0(1)-release
2.03.0(1)-release
38,670
Posted By sai_1712
This code didn't execute. Got the below error.. ...
This code didn't execute. Got the below error..
#! /bin/bash
max=20 # Different numbers to generate
while read val
do
incr=0
while [ ${incr} -le ${max} ]
do
# Convert $incr to...
38,670
Posted By sai_1712
Hello vgersh99, When I use the below code I...
Hello vgersh99,

When I use the below code I am getting the below output.
#!/bin/bash
incr=3
while read val
do
echo "obase=ibase=16;${val}+${incr}" |bc
done < lun.txt

Output:
1D
...
38,670
Posted By sai_1712
Thank you vgersh99 & birei for suggestion... ...
Thank you vgersh99 & birei for suggestion...

I am new to shell scripting. This hexadecimal increment count is part of my customized script. I get the output like below when i run my script

Cat...
38,670
Posted By sai_1712
Hexadecimal increment using shell script
I am looking for hexadecimal increment by reading user input using shell script. For example the user input is 01A. I want to increase the hex count by 4 times

Looking for output:

01A
O1B...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 09:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy