Search Results

Search: Posts Made By: ManiS_1
2,112
Posted By ManiS_1
1. Get the program name from user 2. Assign it...
1. Get the program name from user
2. Assign it to a variable
3. Search for the program name in the file(say input.txt)
grep -i $program_name input.txt
4. Extract required information from step 3...
2,112
Posted By ManiS_1
Hi, Do you need the email IDs to be read from...
Hi,
Do you need the email IDs to be read from the text file or from the database?

From the file, it is pretty much easy. From the database, you can use SQL Plus to read the field values from the...
2,435
Posted By ManiS_1
So your requirement is to search for the...
So your requirement is to search for the FTP_FILES folder inside a given folder, and to traverse through all sub-folders in the FTP_FILES folder that is returned to find out *.txt files?
2,435
Posted By ManiS_1
Try this for finding the file count: find...
Try this for finding the file count:
find ./CUSTOMER -type d -name 'FTP_FILES' -print 0 | ls -l *.txt | grep ^- | wc -l
1,756
Posted By ManiS_1
stat --help lists all the possible options that...
stat --help lists all the possible options that you can use to get the output you need.

For instance, stat -c "%G" filename.txt lists the group of the file - which you can also get from doing an...
17,796
Posted By ManiS_1
Try using select count(*) FROM '&1';
Try using select count(*) FROM '&1';
1,634
Posted By ManiS_1
Try using lastcomm lastcomm userid should give...
Try using lastcomm
lastcomm userid should give you the commands executed by a user
861
Posted By ManiS_1
Try this: file="/home/file.txt" for j in...
Try this:

file="/home/file.txt"
for j in `cat $file`
do
if [ ${j} -lt 99999 ]; then
#put your compare logic here
fi
done
10,091
Posted By ManiS_1
Try this: test.sql $3 and select *...
Try this:

test.sql $3

and
select * from table where col1 = 2234
and col2 = '&1'
Showing results 1 to 9 of 9

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