will it be possible with your find command to exclude files starts with AUS and ends with either .csv or .txt i need to exclude AUS.txt and AUS.csv
Makarand
That really worked perfect but is there any way i can directly invoke the path using your code instead of applying using cd path. I need this to directly zip from the directory like it does
Last edited by rohit_shinez; 05-01-2014 at 01:07 PM..
Hi,
I want to get the disk usage of a directory. But I want it to ignore a particular directory within it.
Lets say I want disk usage of all files/dirs within dir1 except those that are named .snapshot
Does du have the option of excluding a particular directory. (1 Reply)
Hello experts,
I run Solaris 9. I have a below script which is used for gunzip the thousand files from a directory.
----
#!/usr/bin/sh
cd /home/thousands/gzipfiles/
for i in `ls -1`
do
gunzip -c $i > /path/to/file/$i
done
----
In my SAME directory there thousand of GZIP file and also... (4 Replies)
If I execute the command "ls -l /export/home/abcde/dev/proj/code/* | awk -F' ' '{print $9}' | cut -d'/' -f6-8" it will list all the files in /export/home/abcde/dev/proj/code/ directory as well as the files in subdirectories also
proj/code/test.sh
proj/code/test1.c
proj/code/unix... (8 Replies)
I had a Shell script that removes the files that are in a directory older than the specified days.
find /test/files -mtime +10
I would like to add another condition to the find command above that is to exclude any file starting with ‘CGU'
Thanks (1 Reply)
Hi All,
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
Take 1:
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
Take 2:
$ gzip test.txt
$ ll test.txt.gz
$ 133 test.txt.gz
As you can see, gzipping a file and piping into gzip... (1 Reply)
The below 'ls' command will list down files with extensions and suppress the ones with no extension
ls |grep "\\." But this dosen't work when I apply the same logic using 'find' command
find . -type f |grep "\\." I need help on how this logic can be implemented using 'find' command (3 Replies)
I am new to Shell Scripting and need some help.
The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back... (2 Replies)
Hi,
I need to exlucde the files which are present in exclude.txt from a directory
exlcude.txt
AUZ.txt
AUZ.chk
NZ.txt
NZ.chk
tried with below code but not working
ls -ltr | grep -v `cat exclude.lst` (9 Replies)
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT PHP
cubrid_fetch_lengths
CUBRID_FETCH_LENGTHS(3) 1 CUBRID_FETCH_LENGTHS(3)cubrid_fetch_lengths - Return an array with the lengths of the values of each field from the current rowSYNOPSIS
array cubrid_fetch_lengths (resource $result)
DESCRIPTION
This function returns an numeric array with the lengths of the values of each field from the current row of the result set or it returns
FALSE on failure.
Note
If field data type is BLOB/CLOB, you should get its length by using cubrid_lob_size(3).
PARAMETERS
o $result
-$result comes from a call to cubrid_execute(3)RETURN VALUES
An numeric array, when process is successful.
FALSE on failure.
EXAMPLES
Example #1
cubrid_fetch_lengths(3) example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
$result = cubrid_execute($conn, "SELECT * FROM game WHERE host_year=2004 AND nation_code='AUS' AND medal='G'");
$row = cubrid_fetch_row($result);
print_r($row);
$lens = cubrid_fetch_lengths($result);
print_r($lens);
cubrid_disconnect($conn);
?>
The above example will output:
Array
(
[0] => 2004
[1] => 20085
[2] => 15118
[3] => 30134
[4] => AUS
[5] => G
[6] => 2004-8-20
)
Array
(
[0] => 4
[1] => 5
[2] => 5
[3] => 5
[4] => 3
[5] => 1
[6] => 10
)
PHP Documentation Group CUBRID_FETCH_LENGTHS(3)