Search Results

Search: Posts Made By: Kevin Tivoli
9,669
Posted By Kevin Tivoli
No, Luck.... Still the same
No, Luck.... Still the same
9,669
Posted By Kevin Tivoli
SQL Query in Shell Script output formatting
Hi All,

#!/bin/ksh
call_sql ()
{
sql=$1
sqlplus -s $sqlparam_sieb <<EOF
SET ECHO OFF;
SET NEWPAGE NONE;
SET SQLBL OFF;
...
10,828
Posted By Kevin Tivoli
Many thanks bakunin :-) Appreciate the...
Many thanks bakunin :-)

Appreciate the detailed explanation, which is what i was hoping for than just an answer. your explanation helped me a lot to get my head around some basics of sed which...
10,828
Posted By Kevin Tivoli
sed replace range of characters in each line
Hi,

I'm trying to replace a range of characters by their position in each line by spaces.

I need to replace characters 95 to 145 by spaces in each line.

i tried below but it doesn't work

...
3,571
Posted By Kevin Tivoli
Thanks Don.. You are absolutely right.. it is CST...
Thanks Don.. You are absolutely right.. it is CST vs CDT... Below is what i get when i use CDT... it is basically the opposite now...


for i in January February March April May June July August...
3,571
Posted By Kevin Tivoli
Date command format
Hi,

I need to convert a date format "August 12, 2013 9:40:00 PM CDT" in to DD/MM formant

For example ..I am using ...

date -d "January10, 2013 04:05:00 AM CST" +%m/%d
which gives me...
...
3,857
Posted By Kevin Tivoli
I'm not sure where *64241* is coming from. My...
I'm not sure where *64241* is coming from. My folders does'nt really have any thing like that neither my code..

For this i just created a sample script to test..

cat test1.sh
#!/bin/bash
...
3,857
Posted By Kevin Tivoli
Thanks for your replies.. I did use below to...
Thanks for your replies..

I did use below to create...

shc -v -r -T -f script.sh
The issue is that, it works fine on "Machine A" which is as below

uname -a
Linux Machine A...
3,857
Posted By Kevin Tivoli
I have the same issue with similar error as...
I have the same issue with similar error as below...


$ ./tSch_Csc.sh.x
./tSch_Csc.sh.x: /home/MAIN/REP/*64241*./tSch_Csc.sh.x: No such file or directory
./tSch_Csc.sh.x: line 0: exec:...
2,437
Posted By Kevin Tivoli
Perfect thats what i needed. Appreciate you time...
Perfect thats what i needed. Appreciate you time and help.

Thanks a Ton
2,437
Posted By Kevin Tivoli
Correct, The count also please. Find a FOLDER...
Correct, The count also please. Find a FOLDER named FTP_FILES and show me all files actually (not just *.txt) and if a sub-directory exists under FTP_FOLDER then show the files from those...
2,437
Posted By Kevin Tivoli
Yes Sir, find a FOLDER named FTP_FILES and show...
Yes Sir, find a FOLDER named FTP_FILES and show me all files actually (not just *.txt) and if a sub-directory exixts under FTP_FOLDER then show the files from those sub-directories as well.

K
2,437
Posted By Kevin Tivoli
Thank you, I tried your suggestion below but i'm...
Thank you, I tried your suggestion below but i'm getting result as "1"


find ./CUSTOMER -type d -name 'FTP_FILES' -print0 | ls -l *.txt | grep ^- | wc -l
1
But when i run the below i get "32"...
2,437
Posted By Kevin Tivoli
Thanks for you reply, I tried using -type d...
Thanks for you reply, I tried using -type d option but i'm getting the same result as before. my above command actually is finding the folder and the .txt files but i also the number of .txt files in...
2,437
Posted By Kevin Tivoli
Search subdirectories and find and print total files
Hi All,

I have a folder name lets say path/to/folder/CUSTOMER and under this i have several folders and each of these subfolder have serveral subfolders and so on and at some point i will have a...
2,008
Posted By Kevin Tivoli
Find Special/Null/Control Chars and Print Line Numbers
Hi All,

This might be a basic question... I need to write a script to find all/any Speacial/Null/Control Chars and Print Line Numbers from an input file.

Output something like

Null...
5,038
Posted By Kevin Tivoli
Thank You. How can i exclude the one which...
Thank You.

How can i exclude the one which is at each end of the line.

Basically there are some end of the line characters in between the lines. So i just want to locate these end of the line...
5,038
Posted By Kevin Tivoli
Find new line characters in a file
Hi All,

I need to find new line characters in a file and their location in the file and print the results. can someone pleas help.

KM
1,040
Posted By Kevin Tivoli
Sorry forgot to mention about that. The other...
Sorry forgot to mention about that. The other lines like below which are located at right hand side of the page. I don't need them as they will be cover in the regular lines.


...
1,040
Posted By Kevin Tivoli
Grep / awk /sed question
Hi All,

I have a file with following sample data. I am also attaching the file.


(Est) (Est) Jobs Sch
Workstation Job Stream ...
10,062
Posted By Kevin Tivoli
Thank You, I am posting the data as instructed.. ...
Thank You, I am posting the data as instructed..


**************************** Page 1 ****************************








...
10,062
Posted By Kevin Tivoli
Appreciate for your response... I am sure my...
Appreciate for your response... I am sure my approach is not efficient enough. I am a complete novice in scripting. I am just a beginner and practicing few things to pick up. For this one I am...
10,062
Posted By Kevin Tivoli
All, Thanks for all your replies..... ...
All,

Thanks for all your replies.....

Sorry for not being descriptive initially, let me try this time....

Basically, I am trying to print this page (besides many pages i am...
10,062
Posted By Kevin Tivoli
yes, all i want is the line number for $1,350.74,...
yes, all i want is the line number for $1,350.74, but within a range of line numbers specified.
10,062
Posted By Kevin Tivoli
Sure here is the sample page X of many pages but...
Sure here is the sample page X of many pages but this is where the match i am interested in....


**************************** Page 3 ****************************








...
Showing results 1 to 25 of 30

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