Search Results

Search: Posts Made By: fhernu
4,118
Posted By fhernu
while read REF_FILE_REC do ...
while read REF_FILE_REC
do
TABLE_NAME=`echo $REF_FILE_REC | awk -F "|" '{print $1}'`
REC_LEN=`echo $REF_FILE_REC | awk -F "|" '{print $2}'`
while read...
5,462
Posted By fhernu
I don't know the command you are executing but...
I don't know the command you are executing but what I would do is to replace rm {} by echo {}
and execute it on the command line to check files in the subfolders are also printed.

The following...
2,613
Posted By fhernu
cat file1.txt | cut -c 1-430 > file2.txt
cat file1.txt | cut -c 1-430 > file2.txt
2,825
Posted By fhernu
Try this : passwd=`grep $passwd $userfile |...
Try this :

passwd=`grep $passwd $userfile | awk -F ":" '{print $2}' | awk NR==3`This will select the 2nd field and the 3rd line.
9,505
Posted By fhernu
sqlldr err_code 2 means All or some...
sqlldr err_code 2 means



All or some rows rejected
All or some rows discarded
Discontinued load
13,897
Posted By fhernu
Here are 2 possible solutions : Either you...
Here are 2 possible solutions :

Either you copy the file in a TMP folder on the remote system and you move them in the final destination folder after the transfer via a remote command.
or you...
2,202
Posted By fhernu
tst_arr=`find . ! -name "." | xargs -I {} echo {}...
tst_arr=`find . ! -name "." | xargs -I {} echo {} | cut -c 2-${#}`

should remove the leading "."
2,202
Posted By fhernu
You can also try this tst_arr=`find . ! -name...
You can also try this
tst_arr=`find . ! -name "." | xargs -I {} echo {} | cut -c 2-${#}`
for (( i = 0 ; i < ${#tst_arr[@]} ; i++))
do
echo "${tst_arr[$i]}"
done
3,093
Posted By fhernu
Could you please be more explicit? Which files...
Could you please be more explicit? Which files are you searching for? What should be the file permissions?
13,369
Posted By fhernu
This means the number of parameters (values)...
This means the number of parameters (values) given to the script.
This small example will help you to understand :

Create the scritpt test.sh containing the following lines
echo "1st...
Showing results 1 to 10 of 10

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