Search Results

Search: Posts Made By: vpv0002
3,958
Posted By vpv0002
If I use -f I am getting an error as below: ...
If I use -f I am getting an error as below:

split: Not a recognized flag: f
Usage: split [-l Line_Count] [-a Suffix_Length] [File [Prefix]]
or: split -b Number[k|m] [-a Suffix_Length] [File...
3,958
Posted By vpv0002
For some reason its throwing error as split:...
For some reason its throwing error as
split: illegal option -- d
so i modified it by removing d and its working

ls | split -l 500 - /tmp/file-list-


It is just writing the filenames,...
3,958
Posted By vpv0002
I do not have to move the content of the files...
I do not have to move the content of the files but only have to write first 500 file names into one file, then the next 500 file names into another file etc until no more file were found.

Thank...
3,958
Posted By vpv0002
Copying filenames into a new file
I have about 35,000 files in one directory. Here I have to write a ksh to take only the filenames of 500 files at a time and put them into a new file. Can anyone please help me.

Thank you.
4,916
Posted By vpv0002
Thank you Franklin. I understood that by...
Thank you Franklin.

I understood that by writing the script as below, we can capture stdout and stderr to a file.
./program.ksh >> /home/log.txt 2>> /home/log.txt

Instead how to get the...
4,916
Posted By vpv0002
Capturing errors messages into log file
Can we capture and write all the error messages which were being displayed on the command prompt screen during execution of a program into a log file?

If yes, can anyone please let me know on how...
3,444
Posted By vpv0002
Thank you friends it worked
Thank you friends it worked
3,444
Posted By vpv0002
dont we have something like break or continue...
dont we have something like break or continue which we can use instead of returnning a value?
3,444
Posted By vpv0002
Breaking out of loop
I have a main script with while loop having for loop inside. Again in for loop based on if condition few functions will be called. So when a function is called for certain condition it should come...
2,729
Posted By vpv0002
Works perfect for my requirement. Thank you...
Works perfect for my requirement.
Thank you very much
2,729
Posted By vpv0002
Suppressing a message from being displayed
I have a script which checks for *.txt files in a particular directory and if no files were found then it goes into sleep for 10 secs and looks back for files again and if any files were found then...
4,648
Posted By vpv0002
This is not an homework
This is not an homework
4,648
Posted By vpv0002
I do not have perl on my machine and i have to...
I do not have perl on my machine and i have to write it using ksh
4,648
Posted By vpv0002
Thank you everyone for sharing your thoughts ...
Thank you everyone for sharing your thoughts

Hi rwuerth, when i used your code, for some reason it is removing any existing spaces from the record.

i.e. say if the record to be converted is
...
1,865
Posted By vpv0002
Adding existing set of records in the same file
I have a file with 50,000 records in it, i have a requirement to use the same 50,000 records and add them 4 times to the same file to make a total of 200,000 records. I was wondering how to do this...
4,648
Posted By vpv0002
Instead of replacing whole string abc12345 with...
Instead of replacing whole string abc12345 with 12345678 and so on it is adding 678 at the end of the string.
Input file mod.txt
dallastexasabc12345tx
dentonabc12345tx
houstoabc12345tx...
4,648
Posted By vpv0002
Finding a String and Replacing it with an incremental value
Hi Friends,

I have a text file which has about 200,000 records in it. we have a string which repeats in each and every record. So we have to write a script in ksh which finds that string on each...
2,214
Posted By vpv0002
Exiting out of the script
I have to write a script in ksh which again should call another script. Say A.ksh is calling B.ksh. Now in B.ksh if the condition we are checking for is true then we have to go back to the main...
1,963
Posted By vpv0002
Sorry i missed my other part of the question in...
Sorry i missed my other part of the question in hurry.

target.ksh is the mainscript which is calling ftp_script.ksh.

ftp_script.ksh
result=`ftp -v <<**
open $machine
put file.txt...
1,963
Posted By vpv0002
Running one script from another script
Hi Friends,
I have two scripts,
i) the mainscript (target.ksh)
ii) and the other script to FTP a file from unix server to Mainframe (ftp_script.ksh)
The process is automated. so initially we...
2,722
Posted By vpv0002
looping through files
I am writing a ksh which has to load 7 files(.dat files) from input directory into oracle tables using sql loader. The process has to take each file at a time and once if it is loaded succesfully...
29,169
Posted By vpv0002
To Check Oracle Database Status
I have to check the oracle database status using ksh, if the database is down then i need to send my dba an email saying database is down and wait for 10 mins and check for the status again and so...
3,072
Posted By vpv0002
you are right, it helps people like us who are...
you are right, it helps people like us who are learners.
I appreciate it buddy. Once again thanks a lot:)
3,072
Posted By vpv0002
Thank you very much:b: Thanks for the...
Thank you very much:b:

Thanks for the explanation too
3,072
Posted By vpv0002
This is not an home work, i am new to forums...
This is not an home work, i am new to forums concept and to the unix too.
I have a situation at work where i need to compare two oracle tables and see wheatear we have duplicates or not. if...
Showing results 1 to 25 of 42

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