Search Results

Search: Posts Made By: alldbest
1,222
Posted By alldbest
Help with nohup
I have a script test1.ksh (Korn shell) and within that I am calling another script test2.ksh

test2.ksh runs for a pretty long time and hence wanted to execute as nohup from within test1.ksh

...
1,533
Posted By alldbest
Solution from RuDiC worked , thak you everyone
Solution from RuDiC worked , thak you everyone
1,533
Posted By alldbest
How to Split a file -- so that each file has N number of Blocks?
Using Linux ,trying to come up with a shell script to automate below but not able to

I have a input XML file (XML.txt) with over 200,00 XML blocks, I need to inject this XML file into an...
7,948
Posted By alldbest
Please help -- any alternative to expect ?
Doing some automation to automate some server tasks in Linux through shell scripting. In the script I tried to call a expect script to log into another server and execute a command. Please note:...
4,055
Posted By alldbest
The reason I was looking for a SED option was...
The reason I was looking for a SED option was because I would need to call this "code" from within an already existing AWK module....

I can use SED within AWK using the system() command but not...
7,224
Posted By alldbest
thanks, added the correct code tags. So...
thanks, added the correct code tags.

So looks like using print > file within Awk and then grabbing the value from the file from the parent shell is one of my options.
7,224
Posted By alldbest
awk - passing variables in and out
Am looking to pass some Linux environment variables into AWK , can I simply use the -v option ?


awk -F: -v AHOME=$HOME '{ if [ $1 == "X" ]
{rm...
4,055
Posted By alldbest
sed : replace Nth match in a file
I have a situation where a file "config.txt" looks like this

Servername:
OS:
Serername:
OS:
Servername:
OS:
....
....
...
Servername:
OS:


looking for the sed syntax to replace the...
785
Posted By alldbest
thanks Don ! this worked and was exactly what I...
thanks Don ! this worked and was exactly what I wanted

Can you please suggest some links to understand AWK better
785
Posted By alldbest
thanks for the reply. when referring to N number...
thanks for the reply. when referring to N number of times , i mean N number of BLOCKS and not N number of lines.

This is for a situation where I have a inputfile with thousands of XML blocks, all...
785
Posted By alldbest
Extract text N times
I have a input file inputfile which looks like below

[MESSAGE BEGIN]
<hdr:AddressLine>string1</soi:AddressLine>
...
Showing results 1 to 11 of 11

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