Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: ManiS_1
891
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...
891
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...
1,700
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?
1,700
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,175
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...
12,881
Posted By ManiS_1
Try using select count(*) FROM '&1';
Try using select count(*) FROM '&1';
1,286
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
669
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
4,693
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

 

Featured Tech Videos

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