Search Results

Search: Posts Made By: Padmanabhan
6,682
Posted By Padmanabhan
Get the input from user and save it as .txt file
Hi friends,

I am pretty new to shell scripting, please help me in this Scenario.

for example, If I have one file called input.txt

once I run the script,

1.It has to delete the old...
2,980
Posted By Padmanabhan
hi i tries with nawk but i get the follwing error...
hi i tries with nawk but i get the follwing error

nawk '/^<PersonInfoShipTo*/>$/{p=1;print;print "file6.txt"}/^<PersonInfoShipTo*/{p=0}!p' inputcopy.xml

nawk: syntax error at source line 1
...
2,980
Posted By Padmanabhan
Hi i tried the below one,Because my end string is...
Hi i tried the below one,Because my end string is /> and replacement file is file6.txt
but i am getting below error.
awk: syntax error near line 1
awk: bailing out near line 1
Please help me
...
2,980
Posted By Padmanabhan
hi thanks for ur reply, I am having many lines...
hi thanks for ur reply,
I am having many lines between <PersonInfoShipTo and /> i cant give all the line in program,one more thing i need to replace with a file with .txt extension
2,980
Posted By Padmanabhan
Replace the .txt file between two strings in XML file
Hi i am having XML file with many number of lines,I need to replace between two strings with .txt file using awk.
For ex
<PersonInfoShipTo ------------------------------ />
My requirement is to...
3,103
Posted By Padmanabhan
Cut, replace and Paste a String from one file to another
I need to cut all the Strings in one file and Paste it in the another file in the Specific line by replacing the specific String. For Example

Step 1: From the newfile.txt, i need to copy all the...
2,591
Posted By Padmanabhan
hi it works perfect.thanks a lot:o:o i have...
hi it works perfect.thanks a lot:o:o
i have one more requirement.I have modified the extracted data in a file and and i need to insert in the place exactly where i take from.
i.e between ...
1,948
Posted By Padmanabhan
i executed the program under bash environment.it...
i executed the program under bash environment.it works fine for the 1st execution,but saving only the last input in output file.
1,948
Posted By Padmanabhan
Function is calling only once
In my prog if i enter the input for the 1st time it is executing correctly,
but for the second time entire script is not executing it just exiting
my code is

#!/bin/sh
checkpo()
{
echo...
2,591
Posted By Padmanabhan
This s the outout which i need, ...
This s the outout which i need,

AddressID="446311709" AddressLine1="" AddressLine2="" AddressLine3="" AddressLine4="" AddressLine5="" AddressLine6="" AlternateEmailID="" Beeper="" City=""...
2,591
Posted By Padmanabhan
To extract a string between two words in XML file
i need to extract the string between two tags,
input file is
<PersonInfoShipTo AddressID="446311709" AddressLine1="" AddressLine2="" AddressLine3="" AddressLine4="" AddressLine5="" AddressLine6=""...
975
Posted By Padmanabhan
Help needed - Newbee here
I am very new to shell scripting. please help me in this scenario.

when we run the script, It should ask user to enter the input (for example, ticket number like below)

B1234567
B2345678...
1,565
Posted By Padmanabhan
Schedule the Script
I have wriiten one script to get some results from log files. Daily I have to run the script using the below command to get the output.

What I need is, Can I schedule the Script to execute once...
1,233
Posted By Padmanabhan
It worked.. Thanks:b:
It worked.. Thanks:b:
1,233
Posted By Padmanabhan
[Solved] Date as Input
Below is my Scenario.

I wrote one script to search the specific log files for Yesterdays date and gives the result.

I need a script like

1. Once I run the Script, The script should ask me...
33,641
Posted By Padmanabhan
It is showing zero output. Edit... ...
It is showing zero output.


Edit...

It worked.. Thanks...
33,641
Posted By Padmanabhan
I tried like this /var/log/messages | grep...
I tried like this

/var/log/messages | grep date -d '1 day ago' +'%Y/%m/%d


But it shows some syntax error.. I am a newbie. I dont have knowledge in shell scripting.... But I am learning......
33,641
Posted By Padmanabhan
Grep all lines for a specific date in log-files
I need to grep all lines for "yesterday" in /var/log/messages. Dates are in the format "YYYY-MM-DD".
1,149
Posted By Padmanabhan
Thanks... I am a newbie.... ---------- Post...
Thanks... I am a newbie....

---------- Post updated at 06:42 PM ---------- Previous update was at 06:20 PM ----------




Thank you very much, It worked like a charm... But It shows only a...
1,149
Posted By Padmanabhan
Script to Count the Numeric Values and get the Total
Can anyone help me in this?

Here is the Secenario.

I need to count the Numerical vaues from the below output

Item processed: 1401
Item processed: 2839
Item processed: 1261
Item...
Showing results 1 to 20 of 20

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