Search Results

Search: Posts Made By: unishiva
19,735
Posted By unishiva
Sorry this is not working for me
eval $(echo $CurrentLine | awk -F'[ :]' '{ print "DataLine=\"" $1 "\"\nRestLine=\"" $2 "\""}')

When I execute the script as you mentioned , I get blank spaces. I am using Korn Shell. Please let...
19,735
Posted By unishiva
Is it possible to pass variable from awk to shell back
I am passing a varaible to from Shell to awk then I am doing some maniplation for that variable inside awk. I want that maniplated variable value back to shell , Is this possible .Please let me know.
2,275
Posted By unishiva
Thanks for your reply. This is really useful. ...
Thanks for your reply. This is really useful.
What I should do if want all parameter passed except first one in array.
Pls let me know.

Thanks
Unishiv
2,275
Posted By unishiva
How to get files names passed to a script
I need to get files names passed to a script. Here number of files passed may vary
like MyScript.ksh file1 file2 file3..... so on

I am writting script somthing like this

set -A Files

while...
41,024
Posted By unishiva
Processing Command line Parameteres in to array
I need to get files names passed to a script. Here number of files passed may vary
like MyScript.ksh file1 file2 file3..... so on

I am writting script somthing like this

set -A Files
...
2,613
Posted By unishiva
Thanks this helps a lot
Thanks for your reply.
2,613
Posted By unishiva
Create two line from single line in shell
I wanted crate two lines by parsing one lin by exracting certian fields

I have record line somthing like below (Origanal line before Parsing)

DF02000XXYYYY00200.89ZZPPPP00800

Field...
9,624
Posted By unishiva
Sorry for the confusion
Let me put it simple ..I wanted crate two lines by parsing one lin by exracting certian fields

I have record line somthing like below (Origanal line before Parsing)
...
9,624
Posted By unishiva
Parsing a line in Shell Script
I have record line somthing like below with first line showing char spacing not real record line
1 | 2 | 3rd Field--------------|-4th field--| This is charcatersapcing of line...
1,627
Posted By unishiva
Thanks for reply
I will try this. Thanks.
1,627
Posted By unishiva
Better of reading from file
Hi all,
I have file to read somting like this

T SKKSD SKKDS SLLDSK
K SKDK 994 434 4343
A 494 DKLKLD SDFD
H LSDKLDSK DSDSDS
U KDS 0DS SD SDF99SD DFSSD
D DSK SDK94094 3

Based on first field...
Showing results 1 to 11 of 11

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