Search Results

Search: Posts Made By: nram_krishna@ya
11,000
Posted By nram_krishna@ya
Limit on Number of characters in a line - Vi editor
In the vi editor, there seems to be some limit on the number of characters could be allowed in single line. I tried a line with characters up to 1880. It worked. But when i tried with something of...
4,887
Posted By nram_krishna@ya
It works!. Thank you very much :-)
It works!. Thank you very much :-)
4,887
Posted By nram_krishna@ya
Base 64 encoded string
Could anyone of you please give me some idea to decode base 64 encoded value in ksh?
12,516
Posted By nram_krishna@ya
Try using " tail -1 123.log"
Try using " tail -1 123.log"
1,472
Posted By nram_krishna@ya
help needed.. when i tried echo $var1 i was not...
help needed.. when i tried echo $var1 i was not getting output as "chris martin"
what i suppose to do to print values explicitly using
echo $var1
echo $var2
echo $var3

Command:
echo...
1,472
Posted By nram_krishna@ya
Thank you very much, Yazu. I appreciate your...
Thank you very much, Yazu. I appreciate your quick help!
It worked!
1,472
Posted By nram_krishna@ya
Script has to split the string in such a way that...
Script has to split the string in such a way that all alphabets before the number, then number and then all alphabets after the number..

Input: chris martin 200173 845747 mech engineer
output:...
1,472
Posted By nram_krishna@ya
String operations
Can you give me some suggestions to split below string into three parts using shell scripts.. Script has to print all alphabets before the number, then number and then all alphabets after the...
1,181
Posted By nram_krishna@ya
Michael, Sorry for not being precise. I was...
Michael, Sorry for not being precise.
I was looking for whole word match using grep. Now i got it.
Below is the syntax i used..

grep "\<[Ee][Xx][tT]\>"

Thanks for all your help!
1,181
Posted By nram_krishna@ya
numbers mentioned in the first message of the...
numbers mentioned in the first message of the thread.. like 12345780 extn 1234
1,181
Posted By nram_krishna@ya
regular expression
Could anyone of you please guide me on making correct regular expression to match the exact word or character

I have some numbers like 12345780 extn 1234
1234567 x 43545
13245678 Extn 454857

...
1,643
Posted By nram_krishna@ya
Thanks Shipra. I think your logic is...
Thanks Shipra.

I think your logic is assuming that there could be spaces before and after the alphabets. But the issue here is there are spaces in between numbers too. Sometimes no spaces in the...
1,643
Posted By nram_krishna@ya
Thanks, Shipra and bartus11. One more query....
Thanks, Shipra and bartus11.
One more query. There could be any alphabets inside the string. How to get alphabets alone.
For example, 123456 abc 3446. I just want to get those alphabets present...
1,643
Posted By nram_krishna@ya
Thanks... But i would like to know how to extract...
Thanks... But i would like to know how to extract the numbers which are present before the pattern and after the pattern.
1,643
Posted By nram_krishna@ya
Here is the sample input: 1234567890 abc 1234 ...
Here is the sample input: 1234567890 abc 1234
Alphabets inside the string could be of any length and i have some 70+ different patterns ( like abc or abc- or abc . ) in another file. I just want to...
1,643
Posted By nram_krishna@ya
pattern matching
Hi,

any idea how to extract alphabets alone in the string which contains numbers and alphabets. Thanks in advance!
1,483
Posted By nram_krishna@ya
Thank you very much, Michael! ----------...
Thank you very much, Michael!

---------- Post updated at 03:00 AM ---------- Previous update was at 02:57 AM ----------

Thank you very much, Skrynesaver.
...
1,483
Posted By nram_krishna@ya
Thanks, shell life! VAR1="AB CDEF" VAR2="ABC"...
Thanks, shell life!
VAR1="AB CDEF"
VAR2="ABC"

I just want to know whether VAR1 is starting with VAR2. There could be spaces in between VAR1 characters like i mentioned in the above example. Then...
1,483
Posted By nram_krishna@ya
Similar kind of... I just want to generalize it...
Similar kind of... I just want to generalize it for any kind of strings or numbers. Could you shed more light on this. Thank you very much!
1,483
Posted By nram_krishna@ya
pattern matching
Can someone tell me whether is there a way to test ABC is starting in AB CDEF and then drop AB C and retain DEF alone.

Thanks in advance!
1,584
Posted By nram_krishna@ya
var1=`cat userids.txt | grep $id` name=`echo...
var1=`cat userids.txt | grep $id`
name=`echo $var1 | nawk -F"|" '{print $2 }'`

I am just checking whether user id is present in a file called userids.txt and if so, am getting the user name from...
1,584
Posted By nram_krishna@ya
Grep command
Hi,

I tried different options -i -h and multiple combinations to fix below output while doing grep from a file

Usage: grep -hblcnsviw pattern file . . .

But it didnt work for me......
2,272
Posted By nram_krishna@ya
It works. Thank you very much Which command...
It works. Thank you very much
Which command gives better performance sed or tr
2,272
Posted By nram_krishna@ya
Thanks, Here is the script <test.ksh> i use ...
Thanks,

Here is the script <test.ksh> i use

#!/bin/ksh
LINE="nramak|BFS|121 * 789 * 85#2[123]|7539|"
PARAM4=$(printf '%s\n' "$LINE" | nawk -F"|" '{ print $3 }')
printf '%s\n' "$PARAM4"
...
2,272
Posted By nram_krishna@ya
second option works good.. Thank you.. if i...
second option works good.. Thank you..
if i want to make some kind of string manipulation on PARAM4, how should i do.. like using sed or etc., when i use PARAM4 with sed, i getting stuck with...
Showing results 1 to 25 of 48

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