Search Results

Search: Posts Made By: pssandeep
8,462
Posted By pssandeep
Hey, Thanks for the reply. I need to...
Hey,

Thanks for the reply.

I need to pass a file name as an argument while invoking the shell script..

In the test script i am using that file name to check if it exists and then determine...
8,462
Posted By pssandeep
Passing command output as an argument to a shell script
Hi,

I have a very small requirement where i need to pass command output as an argument while invoking the shell script..

I need to call like this

sh testscript.sh ' ls -t Appl*and*abc* |...
6,732
Posted By pssandeep
Hi, thanks its working. Its not working whn...
Hi,

thanks its working. Its not working whn i am using complete path for "awk"

One other question how to do error handling on this command,

For example, if something fails while adding up or...
6,732
Posted By pssandeep
Hi, Its a sample code and haven't developed...
Hi,

Its a sample code and haven't developed compeltely.
Looking for standard error code normally used as per the UNIX standards

---------- Post updated at 04:30 PM ---------- Previous update...
6,732
Posted By pssandeep
Sum up a decimal column in a tab separated text file and error handling
Hi,

I have a small requirement where i need to sum up a column in a text file.

Input file

66ab 000000 534385 -00000106350.00
66cd 000000 534485 -00013364511.00...
11,742
Posted By pssandeep
Hi All, Thanks for ur suggestions.Sorry for...
Hi All,

Thanks for ur suggestions.Sorry for late reply
I followed otheus suggestion and put the code, but it going to infinite loop and not getting any output. I am new to UNIX, so i may be wrong...
11,742
Posted By pssandeep
Getting last 50 lines after finding a word
Hi All,

I have a requirement as below

I need find for a string in a log file and once i found that string i need to send a mail.Thsi can be done thru grep and mailx cmnd.

Here once i found...
10,609
Posted By pssandeep
Thanks for the Help "$Folder"/"$file" this...
Thanks for the Help
"$Folder"/"$file" this serve the purpose

I am giving in other way

Thanks again for quick response

Cheers,
San
10,609
Posted By pssandeep
Spaces in File Name issue
Hi,

I have a small issue while using variables for a file name in UNIX.

I have file name like "abc def 123.txt"
Folder will be in /zzz/xxx/yyy

I created 2 variables Folder = '/zzz/xxx/yyy'...
11,257
Posted By pssandeep
Thanks for all of ur responses Its working with...
Thanks for all of ur responses
Its working with grep.

I have one more question on this, suppose if i want to go and check the text file based on line no For example, I need to go to the line 15...
11,257
Posted By pssandeep
Hi Thanks for the response.Sorry for late...
Hi

Thanks for the response.Sorry for late reply.

When i am executing that command its saying "illegal command grep with q "

when i replaced "q" with "s" missing operator

This is my o/p...
11,257
Posted By pssandeep
String search and generating file
Hi Gurus,

I have a requirement as below

I have text file a.txt which contains

hi hello
process update
status
Output for file Ok to Proceed no issues good
data arrangement

My...
1,889
Posted By pssandeep
Searching a text file and assigning it to a variable
Hi Gurus,

I am new to unix.I have a requirement as below

I have text file like a.txt which contains

a.txt

hi hello
process update
status
Ok to Proceed no issues good
data...
2,209
Posted By pssandeep
Problem while concating PIPE symbol with a file
Hi Gurus,

I had a problem writing a pipe file.

Previously i used this code to generate a tab seperated file

ABCEF := ABCEF || 'to_char('|| abc_tab(col_num).col_name || ') chr(9) || ';

...
2,040
Posted By pssandeep
users will not open like tht they will jst...
users will not open like tht
they will jst double click the file
2,040
Posted By pssandeep
Problem with tab seperated file in UNIX
Hi All,

I am facing a problem while getting the data from an Oracle table

Problem:

I am getting rows from an Oracle table to a tab seperated file.

One of the columns in that table have...
6,085
Posted By pssandeep
Executing ls command in remote server
Hi Guru,

I have a requirement where i need to list the *.csv files in my remote server
and copy a file from that server to my unix server
I wrote dis code

#!/bin/sh
....
2,827
Posted By pssandeep
Deleting the files comparing the creation dates
Hi Gurus,

I am new to unix.
I have a requirement where i need to delete some files in a folder twice a week.
Suppose i have a folder AAA. In that i have files from 01/04/2008 to 10/04/2008

I...
8,223
Posted By pssandeep
Thnaks for ur reply No since it reads from 3...
Thnaks for ur reply

No since it reads from 3 sources it will be giving out 3 errors.But the source is same so i get 3 similar messages with only reader variation.
Here in reader place i may get...
8,223
Posted By pssandeep
Thanks for ur reply But here all the lines are...
Thanks for ur reply
But here all the lines are unique since reader_1 will be changed Reader_2.only that variation will be there,

so if i use uniq command it not getting the desired output.
8,223
Posted By pssandeep
Avoid Duplicates in a file
Hi Gurus,

I had a question regarding avoiding duplicates.i have a file abc.txt
abc.txt
-------
READER_1_1_1> HIER_28056 XML Reader: Error [UnterminatedXMLDecl] occurred while parsing:[Error at...
Forum: SCO 03-24-2008
4,195
Posted By pssandeep
Avoiding duplicates with some special case
Hi Gurus,

I had a question regarding avoiding duplicates.i have a file abc.txt
abc.txt
-------
READER_1_1_1> HIER_28056 XML Reader: Error [UnterminatedXMLDecl] occurred while parsing:[Error at...
1,840
Posted By pssandeep
tHANKS FR UR REPLY But here no of responses...
tHANKS FR UR REPLY

But here no of responses = 20 is not constant one it will be a variable there i shouls get the value of variable a

NAME ALSO VARIES
1,840
Posted By pssandeep
What is "Delete/Rename/Compress Log Files" in the...
What is "Delete/Rename/Compress Log Files" in the above command
What should be kept in place of that?
1,840
Posted By pssandeep
Sed-- command help required
Hi Gurus,

I have a small requirement.
Let suppose i have a file test.txt
test.txt contains
Dispatched date = '2008-04-08'
Name = 'Logers'

Now i want to add one more line to it as Number of...
Showing results 1 to 25 of 40

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