Search Results

Search: Posts Made By: ramprabhum
907
Posted By ramprabhum
Need to extract string based on the alignment.
Finding very hard time to achieve this.
I have a text file extracted from XML file. The text file which is extracted is very large & has multiple blocks similar to the sample file given below

...
3,992
Posted By ramprabhum
Use xmlstarlet inside an if loop
I have a XML file of little huge size. I have to build a logic to get the count of the tag <capacity>.

And have an if loop such that all the <capacity> blocks are captured one after the other.
...
2,351
Posted By ramprabhum
@RudiC: I had this doubt because it is not a...
@RudiC:

I had this doubt because it is not a good practise to use the curl output i.e in xml directly for processing or searching.
I tried converting that using lync and xmlparser but both...
2,351
Posted By ramprabhum
I tried redirecting the output to a file and then...
I tried redirecting the output to a file and then opening that file. But still I face the same problem.

For your infornmation, when I run one by one as a command and then echo those variable in...
2,351
Posted By ramprabhum
Echo not printing the variables with delimiters as required
This is the file which contains only neccessary values from the output of curl command i.e TEMP_FILE

Proxy Hostname
server0123.domain.com
Proxy IP address
...
3,620
Posted By ramprabhum
Thanks...!!! This was what I was looking for......
Thanks...!!! This was what I was looking for... But one problem here seems to be that it lists directory as well. I need only the filenames so I added an additional grep command with the code...
3,620
Posted By ramprabhum
Unfortunately no. In between I came across...
Unfortunately no.

In between I came across this piece of code in Google which seems to working fine in bash but not in ksh (ksh88)

find . -type f -mtime $(( ( $(date +%s) - $(date -d...
3,620
Posted By ramprabhum
Thanks for your solution. Unfortunately I...
Thanks for your solution.

Unfortunately I dont have the required perl modules installed in my machine neither I do not have admin rights for that machine to install the required modules.

Kindly...
3,620
Posted By ramprabhum
Not accessible to machine now. But I use AIX 6.1...
Not accessible to machine now. But I use AIX 6.1 OS machine with ksh88 version.

Hope this will be helpful.
3,620
Posted By ramprabhum
To get the files in a directory for the given date (User entered date)
Need a ksh script to get the files that were created or modified in a directory on a particular date entered by the user.

For example if a directory contains files as below :

> ll
total 41...
5,341
Posted By ramprabhum
I use ksh88 version
I use ksh88 version
5,341
Posted By ramprabhum
I had tried this earlier but i was getting this...
I had tried this earlier but i was getting this error

ksh: 0403-057 Syntax error: `(' is not expected.
5,341
Posted By ramprabhum
ksh : need to store the output of a awk command to a array
I have awk command :

awk -F ' ' '{ print $NF }' log filename

And it gives the output as below:


06:00:00
parameters:
SDS
(2)
no
no
no
no

doc=4000000000).


information:
11,020
Posted By ramprabhum
@in2nix4life: Thanks for your suggestion...:),...
@in2nix4life: Thanks for your suggestion...:), but when tried it out and echo con the result what i got is as below
$ echo $con
var1

@Don Cragun, MadeInGermany: It worked perfectly...:b: Thanks ...
11,020
Posted By ramprabhum
Concatenate two variables and form the third variable
Hi Guys,
I was scratching my head for this for half a day... finally not successful :confused:
Following is the problem

I have a variable
$ var1=123
$ var2-234
$ var3=345
and another...
Showing results 1 to 15 of 15

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