Search Results

Search: Posts Made By: decci_7
1,745
Posted By decci_7
Thank you Scrutinizer ... took a lead from your...
Thank you Scrutinizer ... took a lead from your example and came up with below.

To remove all spaces from the row that begins with keyword "Footer"
sed '/^Footer/s/ //g' file1 > file2
To remove...
1,745
Posted By decci_7
Thanks! 2nd output actually looks...
Thanks!



2nd output actually looks identical but the input has trailing spaces in the last record whereas the output doesn't have any trailing spaces. Thats the difference.
1,745
Posted By decci_7
Removing spaces from line matching a pattern
Hi,

I want to remove the spaces from all the lines matching a particular pattern from my file. For instance in file abc.txt I have following data.
Header,This is the header
111,this is 1st...
15,090
Posted By decci_7
Thanks for the solution. It works perfectly fine....
Thanks for the solution. It works perfectly fine. There is one more issue though. I'm trying to identify the number of bytes, lines and max line length using below command.
wc -l -c -L
But it ends...
15,090
Posted By decci_7
Identify extended ascii characters in a file
Hi,

Is there a way to identify the lines in a file having extended ascii characters and display the same?

For instance I have a file abc.txt having below data


aaa|bbb|111|This is first...
1,168
Posted By decci_7
Thanks Yoda. This is what I was looking for.
Thanks Yoda. This is what I was looking for.
1,168
Posted By decci_7
Print occurrences for pattern match
Hi All,

I want to print all the occurrences for a particular pattern from a file. The catch is that the pattern search is partial and if any word in the file contains the pattern, that complete...
35,241
Posted By decci_7
Works like a charm !! Thanks !!
Works like a charm !! Thanks !!
35,241
Posted By decci_7
sqlPlus output with new line character
Hi,

I have a script which calls a sqlplus command and i'm saving the output in a variable.

Z=`sqlplus -s $TC_ORACLE_USER/$TC_ORACLE_PASSWORD@$TC_CONNECT_STRING <<eof
set echo off
set head off...
8,762
Posted By decci_7
Thanks
Thanks a lot !!

Nice explaination !!! You made my day ! :)
8,762
Posted By decci_7
Sorry .. it works
Sorry Admin ... my mistake .. it really works ... :b:

Can u explain a little bit on how u achieved it? Is there any documentation for OIFS and IFS?
8,762
Posted By decci_7
What are IFS and OIFS
Hi,

It doesnt work ... i didnt get the meaning of IFS and OIFS? what are they? are these variables? what is the use of these variables?

Please explain?

Thanks.
8,762
Posted By decci_7
handling Multiline SQL outputs
Hi,

I'm using KSH and calling a SQL statement inside my script which returns more than 1 record.

Result=`sqlplus -s $DB_USER/$DB_PWD@$DB_STRING <<END
set echo off
set head off
spool junk.txt...
7,116
Posted By decci_7
Unix + oracle connection
Requirements:

Using a shell script I have to check the 4 values from a table in Oracle and then store the result as "Y" in a Unix variable if the values are desired and "N" if the values are not...
2,086
Posted By decci_7
I have tried the rsh as well ... but it throws...
I have tried the rsh as well ... but it throws below error:

ksh: rsh: cannot execute
2,086
Posted By decci_7
How do I check file dates on remote machines
Hi ..

I want to check the date for one file which is present on the remote machine.

How do i do that??

Also if i'm only having the sudo rights .. can i do that with my login or do i need all...
677,424
Posted By decci_7
Even i'm also getting the same ftp: connect:...
Even i'm also getting the same ftp: connect: Connection refused error when i'm trying out the below code

HOSTNAME=xx.xxx.xx.xxx
USER=username
PSSWD=password
datedir=`TZ=CST+48 date +%m%d%Y`...
4,248
Posted By decci_7
In addition to the previos query ... i have tried...
In addition to the previos query ... i have tried FTP also.

on 2 machines the connection and the script works fine. But on one machine it gives the following error:

ftp: connect: Connection...
4,248
Posted By decci_7
Thanks.. both the above command works .. ...
Thanks..

both the above command works ..

but what if i dont want the word count of that file and just want to make a check whether the file is present on the remote unix machine?

how to do...
4,248
Posted By decci_7
Error is: ksh: /temp/tmpdir/wc: not found
Error is:

ksh: /temp/tmpdir/wc: not found
4,248
Posted By decci_7
Connection to another Unix machine
Requirements

I'm running a shell script from one Unix server A which calculates the line count using "wc -l" of a file which resides in another unix server B.

I have tried the ssh also but...
18,777
Posted By decci_7
I got one too..
start_time=`date +%H:%M`
end_time="23:45"
tme=`TZ=CST+24 date +%Y%m%d`
start_hour=`echo $start_time | cut -d':' -f1`
start_min=`echo $start_time | cut -d':' -f2`
...
100,888
Posted By decci_7
What does CST stands for?
This works but can you please tell for what we use "TZ" and "CST"???
18,777
Posted By decci_7
time difference
Hi,

i have one hard coded time which will be 23:45 and one will be sysdate (same date) and time less than 23:45.

i want to start my job at 23:45 and the input file will be arriving before that....
Showing results 1 to 24 of 24

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