Search Results

Search: Posts Made By: npn
4,640
Posted By npn
Logging OWB mapping execution in Shell script
Hi,

I am executing a OWB mapping from a shell script like this

$OWB_SQLPLUS MY_WAREHOUSE plsql MY_MAPPING "," ","

I want to log this mapping execution process into a file.

Please let me...
36,296
Posted By npn
Removing first character in a string
While writing a shell script i happen to store some value in a string. Lets say the value is 59788.
Now in this script i want to get the value 9788 removing the first charater 5. The original...
2
4,247
Posted By npn
Exit Conditions
exit 0 : normal exit (Program Success)
exit 1 : forced Exit (Program contains error and has to be terminated)
2,070
Posted By npn
simple!!
# print section of file with regular expression
sed -n '/regexp/p'
5,263
Posted By npn
running twice
you can schedule in cron... what is it that you want exacly?
8
-d
2,905
Posted By npn
-d option
-d is used to check if the file is a directory
2,734
Posted By npn
Printing by Line numbers
u can use

head -$line_number file_name | tail -1

to print the line you want in case you dont want to work with sed.
4,402
Posted By npn
deleting Lines
You can do a diff and then write these records into a new file and delete file2.
then rename it to file2. U need some minor tweaking for this to work.

However, for this the File 1 must be a...
3,323
Posted By npn
File name manipulation in FTP
YOUR_FILE_NAME=test.dat_`date +%b%y`


echo user $REMOTE_USER $REMOTE_PSWD > FTP_GET_file
echo append $YOUR_FILE_NAME >> FTP_GET_file
echo bye >> FTP_GET_file

ftp -inv $REMOTE_HOST <...
2,470
Posted By npn
adding Data in First line
existing file filename "file_one.dat"

which contains
AMITH
ARUN
ARVIND

I am adding "I LOVE PIZZA" in the first line of this file

Here it is:
echo "I LOVE PIZZA" | cat > tempfile ; cat...
6,787
Posted By npn
Dir and files
Finding All Sub-Directories in Directory
find <Dir path> -type d -ls


Finding All Files in Directory
find <Dir path> -type f -ls
2,095
Posted By npn
email
If you are using XP and outlook client, then you will have the email details in View -> Options.

Anyways you should mention the type of client you are using
20,670
Posted By npn
removing /var/spool/home
Removing this files will not affect anything per se. But you need to make sure that the files are not required.
3,595
Posted By npn
Merging contents of two files
Try this for merging as you have mentioned

pr -tm file_one.dat file_two.dat | awk '{print $1"=\""$2"\";"}' > file_three.dat
Showing results 1 to 14 of 14

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