Search Results

Search: Posts Made By: arjun_arippa
Forum: Programming 10-20-2016
1,833
Posted By arjun_arippa
Moving a file from one location to another.
Hi,

I've done a set of operations on some text files using a someexecutuble.jar file, which is internally calling some python scripts. Post that, in same location, my jar created some log files. ...
2,268
Posted By arjun_arippa
ok yes .. got it. this would work for the given...
ok yes .. got it.
this would work for the given example.. and if in the due future, if I add some normal execution code after the variable set and then define another sql query in another variable...
2,268
Posted By arjun_arippa
Hi, thanks alot for the lead. I believe this...
Hi,
thanks alot for the lead. I believe this can provide a solution for my issue. can you also let me know how this works? that would also help me understand the syntax so that i can tweak this in...
2,268
Posted By arjun_arippa
To extract query from a text file.
I would like to use shell script here.
The problem is the variable is defined in a proprietary language and in a proprietary file and the name of the variable might not be the same every time. so...
2,268
Posted By arjun_arippa
To extract query from a text file.
Hi,

I've a txt file with the following contents:

variable = "select name, emp_id, org_name "
variable = variable + " from table_name where "
variable = variable + " condition_1 = ABC and "...
2,396
Posted By arjun_arippa
Generate documentation for a shell script
Hi,

I've written a shell script with proper intentation and commenting structure. However, I would like to generate documentation for the shell which I have written. Is there any tool as such to...
Forum: Programming 04-29-2013
3,015
Posted By arjun_arippa
To check the file permissions using python scripting
Hi,

For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if...
8,644
Posted By arjun_arippa
To check the file permissions using python scripting
Hi,

For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if...
2,282
Posted By arjun_arippa
ya... This is working fyn.. Thanks all
ya... This is working fyn.. Thanks all
2,282
Posted By arjun_arippa
Hi michaelrozar17...
Hi michaelrozar17 (https://www.unix.com/members/302081366.html) http://fedora.unix.com/images/statusicon/user_online.gif
Registered User



while using this sed 's/pgmId.*$/&\nnew_data/'...
2,282
Posted By arjun_arippa
Help in adding a data after a particular line of data in a file.
Hi.. I'm into a bump after trying to solve this prob.. i've a file with contents like below.
<blankline>
'pgmId' : 'UNIX',
'pgmData' : 'textfile',
'author' :...
3,080
Posted By arjun_arippa
No this code is not working... Its showing error...
No this code is not working... Its showing error as the above mentioned code cannot be parsed...

Is there any space between 1/^$/ and s/^$!/
3,080
Posted By arjun_arippa
sed command to get the first occurrence of a blank line
oh i'm sorry... The command i use is
sed -e 's/^$/data'

This is replacing every blank line. I was trying to replace only the first occurence of a blank line in the file, with data..
3,080
Posted By arjun_arippa
Sed command to get first occurence of a line in a file
Hi,

I need a help in replacing the first occurrence of blank line with data.

I used the following command, but its replacing all de occurrences of blank lines in de file. Is there any other...
2,647
Posted By arjun_arippa
Its coming from a flat file and it will be...
Its coming from a flat file and it will be choosed depending upon the value of <data> in the sed command.
after inserting the statements, the results would be like:
...
2,647
Posted By arjun_arippa
I used : sed "/<data>/{G;G;}/"...
I used :

sed "/<data>/{G;G;}/" fileName>tempFile

to create two blank lines after searching for the tag <data>.... After creating blank lines I tried to replace them with two different data,...
1,377
Posted By arjun_arippa
Help in replacing two blank lines with two diff data
Hi.. I'm facing a trouble in replacing two blank lines in a file using shell script...
I used sed to search a line and insert two blank lines after the searchd line using the following sed command....
2,647
Posted By arjun_arippa
Help in replacing two blank lines with two lines of diff data
Hi.. I'm facing a trouble in replacing two blank lines in a file using shell script...
I used sed to search a line and insert two blank lines after the searchd line using the following sed command....
2,956
Posted By arjun_arippa
Yes..datz de only way... I was trying out to do...
Yes..datz de only way... I was trying out to do it without a temporary file.. It seems we can't get it done without temp file... Anywayz thanks all.... :)
2,956
Posted By arjun_arippa
when i give the following command using sed -i...
when i give the following command using sed -i giving an error like this:

sed: illegal option -- i
Usage: sed [-n] [-e script] [-f source_file] [file...]

---------- Post updated at 06:51 PM...
2,956
Posted By arjun_arippa
sed i "/<group>/{G;G;}/" odcm.xml. Since we...
sed i "/<group>/{G;G;}/" odcm.xml.
Since we cannot use -i for sed. When i'm not using the i option, its giving the result only in STDOUT, whereas when I use the i option with, i'm getting an error...
2,956
Posted By arjun_arippa
No.... Now the whole sed is not working... any...
No.... Now the whole sed is not working... any other options? like with awk?
2,956
Posted By arjun_arippa
Yes Thanks.. This is working fine.. but the...
Yes Thanks.. This is working fine.. but the output is coming onto the STDOUT.. With this script I was trying to make the changes into the xml file itself..
2,956
Posted By arjun_arippa
sed '/<group>/ { printf...
sed '/<group>/ { printf "\n<module_line1>\n<module_line2>";next;}' odcm.xml
2,956
Posted By arjun_arippa
Needed a help in inserting a new line!!!
Hi..wanted a help regarding inserting a newline in an xml file using shell script.

i've an xml file which has the following data.

1. <?xml version="1.0" encoding="UTF-8"?>
2. <group>
3....
Showing results 1 to 25 of 25

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