Search Results

Search: Posts Made By: srikanth_ksv
179,979
Posted By srikanth_ksv
ksh
Its ksh for me!
7,214
Posted By srikanth_ksv
You can use grep -v "keyword" >outfile where...
You can use grep -v "keyword" >outfile where keyword is present in your header and footer
3,367
Posted By srikanth_ksv
Coding Standards
Here are few things I came up with :
Please suggest any changes that you feel necessary :

1. Header
Each Shell script file will use this Header template at the top of the file.
...
3,367
Posted By srikanth_ksv
Check lists for Unix Shell Programming
Hi all,

Can anyone provide me any checklists or a list of steps I should follow before executing my scripts.
Could also tell me if there are any other standards to be followed while shell...
2,781
Posted By srikanth_ksv
Thanks
Thanks a lot Vgersh99 for your inputs
2,781
Posted By srikanth_ksv
Thanks Vgersh, But it did not work. This was...
Thanks Vgersh,

But it did not work. This was the output which I got when I ran it with my input.


addr->[]
No mail for fe598
addr->[]
No mail for fe598
addr->[]
No mail for fe598...
2,781
Posted By srikanth_ksv
Separate a portion of text file into another file
Hi,

I have my input as follows :

I have given two entries-

From system Mon Aug 1 23:52:47 2005
Source !100000006!:
Impact !100000005!: High
Status ...
3,210
Posted By srikanth_ksv
Thanks
Thanks Vino and Matrixmadhan.
Now I am clear about the usage.
3,210
Posted By srikanth_ksv
Thanks Vino
Thanks Vino, Your explanation was a great help.
But why -T option is being used still remains as a nagging doubt.
3,210
Posted By srikanth_ksv
Help in sort command
I am new to unix.
Could anyone tell me what the following command does.

cat *.caller.dat | grep "," | sort -t\" -k 2,2 -u -T $SORTING_DIR > external_source.sort

Your help would be much...
6,790
Posted By srikanth_ksv
Create a lock file
May be you could try this :

You could create a temporary zero byte lockfile and check for its existence every time before you run the script.If the file exists you can give a sleep command to wait...
44,957
Posted By srikanth_ksv
Thanks Vgersh99! I guess awk doesn't support...
Thanks Vgersh99!
I guess awk doesn't support the system function.
When I tried with nawk even this worked:

yes|head -1|nawk 'BEGIN { system("date")}'

Thanks once again.
regards,
srikanth.
44,957
Posted By srikanth_ksv
How to use system function in awk
Could any one tell me how to use the system function in awk?
I want to use it to print the system date.

I have been trying like this :

yes |head -1|awk '{ system("date")}'

When I execute...
20,946
Posted By srikanth_ksv
Very Interesting solution...I never thought one...
Very Interesting solution...I never thought one can collect the fields into a variable using sed. Can someone explain it further.Will the above solution work if spaces is the delimiter.
Also which...
Showing results 1 to 14 of 14

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