Search Results

Search: Posts Made By: babom
1,048
Posted By babom
How to convert values in a line to rows?
hi,

I am basically running a sql that returns me values and I have stored them to a variable for example value of the variable will be:

123 124 345

now I want to write values stored in the...
2,318
Posted By babom
Hi, check if this will help ls |sed...
Hi,
check if this will help

ls |sed 's/\(............................\)\(.\)\(.....\)/0\3_\1/'
1,734
Posted By babom
thanks for the reply... is there any workaround...
thanks for the reply... is there any workaround for this issue...
1,734
Posted By babom
problem using pattern with two digit in sed
Hi,

I am trying to create a csv from a existing flat file.I am using the same data to create the csv file. But I have issues \10 columns onwards..




sed...
2,089
Posted By babom
Thanks a lot guys... the issue was due to the tab.
Thanks a lot guys... the issue was due to the tab.
2,089
Posted By babom
hi gary, Sorry, I did not understand what...
hi gary,

Sorry, I did not understand what you said.

can you kindly show it in the above code...
2,089
Posted By babom
yes.. that is why I am confused.... I have...
yes.. that is why I am confused.... I have checked my actual code in notepad++... the braces are fine.... like I said earlier if i comment IF statement ... I don't have the error... but with the IF...
2,089
Posted By babom
Sorry that was a Typo actually in the script it...
Sorry that was a Typo
actually in the script it is:
sqlplus -s username/password@SID<<-EOF
2,089
Posted By babom
issues with sql inside if statement
Hi,

I have problem with the following code. My IF block is not executed. And I see "syntax error near unexpected token `)'" error for line "EOF" in the stats_function().
but when I comment the IF...
850
Posted By babom
It worked after I added a space after if. ...
It worked after I added a space after if.

Thanks a lot.
850
Posted By babom
I still have issues even after the spaces where...
I still have issues even after the spaces where removed.
850
Posted By babom
need help on "if else" issue
Hi,
I am trying to read lines from a file and check if the length is correct. But the test condition in if has some issues and I am not able to figure out, what the problem is?
Kindly help me with...
2,161
Posted By babom
Try this egrep -B 1 ORA-3136 alert.log
Try this
egrep -B 1 ORA-3136 alert.log
13,763
Posted By babom
Thanks for your help. But I have another...
Thanks for your help.

But I have another question we usually
mv original_file_name new_file_name
but above we are using
mv new_file_nameoriginal_file_name

Kindly tell what is the...
13,763
Posted By babom
[Solved] remove file extension
Hi,

I have some files with some extension e.g. abc.xml.REMOVE,xyz.xml,efg.xml.REMOVE .

I have to remove the .REMOVE extension. I can display it using the below script but cannot rename it.
ls...
1,559
Posted By babom
Thanks guys, it worked with \+.
Thanks guys, it worked with \+.
1,559
Posted By babom
Removing one or more blank characters from beginning of a line
Hi,

I was trying to remove the blank from beginning of a line.

when I try:

sed 's/^ +//' filename
it does not work
but when I try
sed 's/^ *//' filename
it works
But I think the first...
1,973
Posted By babom
guys thanks for the replies...I think the first...
guys thanks for the replies...I think the first e.g. of sed will be helpful..................
1,973
Posted By babom
How to generate a csv files by separating the values from the input file based on position?
Hi All,

I need help for doing the following.
I have a input file like:

aaaaaaaaaabbbbbbbbbbbbbbbbbbbb
cccbbbbbaaaaaadddddaaaabbbbbbb

now I am trying to generate a output csv file where i...
1,880
Posted By babom
how to ignore "," between quotes in awk?
Hi,
I have file1 where I have my ids and file2 where I have ids and corresponding texts. I have to match the ids of my file1 to file2 and write in ids and corresponding text to another file.
e.g...
Forum: HP-UX 10-03-2007
35,324
Posted By babom
Or operator with if
hi,

i was trying to club to test condition with if.

if [ $1 -ne 0 ] -o [ $2 -ne 0 ]; then

it is giving me error message, i wanted to ask how can we check two condtions with one if.
Showing results 1 to 21 of 21

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