02-15-2010
thank you so much
it works gr8
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear all,
I have to calculate sum of record count of files of the specified directory.
First I tried the following way which prints one or more outputs.
How can I sum of this output?
find /home/work/tmp/1/O/ -type f -print0 | xargs -0 wc -l | grep total
1666288 total
1073908 total
... (4 Replies)
Discussion started by: mr_bold
4 Replies
2. Shell Programming and Scripting
I am using a Linux machine and it's default shell is BASH . I have korn shell script and inside it's setting environment variables. But after execuitng the script those env values are not holding the values . If I run the script outside of that ksh script with source a.sh , it's able to hold to... (1 Reply)
Discussion started by: talashil
1 Replies
3. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
4. Shell Programming and Scripting
Hello All
I have a xml file with many sets of records
like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
also same file can be like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
<tag3>data2&data3</tag3>
Now i can grep & and replace with & for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies
5. Shell Programming and Scripting
Hi,
I am cutting data from a fixed length test file and then writing out a new record using the echo command, the problem I have is how to stop multiple spaces from being written to the output file as a single space.
Example:
cat filea | while read line
do
field1=`echo $line | cut -c1-2`
... (6 Replies)
Discussion started by: dc18
6 Replies
6. Shell Programming and Scripting
Hi, I have text file abc.txt. In this file, I have the following data.
Input:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith& Mrs Smith
Mr Smith &Mrs Smith
Output:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith&... (4 Replies)
Discussion started by: naveed
4 Replies
7. Shell Programming and Scripting
Experts:
LINE1 :This is line one The FIRST line of the file.
LINE2 :This is line two
LINE3 :This is line three with 8 fileds
LINE4 :This is line four
LINE5 :This is line five
LINE6 :This is line six with 8 fileds
I want to delete line 1, and then process the file and want to print lines... (2 Replies)
Discussion started by: rveri
2 Replies
8. AIX
I'm using the below statements in my script
if && then
sqlplus sysadm/abcdefgh12@${dbarr} @/u1/scripts/ResetPswd.sql
elif then
for idx in 0 1 2 3 4 5 6 7
do
sqlplus sysadm/abcdefgh12@${dbarr} @/u1/scripts/ResetPswd.sql
done
else
exit
fi
It give me... (5 Replies)
Discussion started by: Pandee
5 Replies
9. Shell Programming and Scripting
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
LEARN ABOUT OPENSOLARIS
fiocompress
fiocompress(1M) System Administration Commands fiocompress(1M)
NAME
fiocompress - file compression utility
SYNOPSIS
/sbin/fiocompress -c [-m] [-b block_size] input_file output_file
/sbin/fiocompress -d input_file output_file
DESCRIPTION
The fiocompress utility is a file compression tool that works together with the dcfs(7FS) file system to perform per-file compression. You
can use fiocompress to decompress a compressed file or mark a compressed file as compressed, causing automatic decompression on read. The
primary use of fiocompress is to compress files in the boot archive.
Note that this utility is not a Committed interface. See attributes(5).
OPTIONS
The following options are supported:
-b block_size
Specify a block size for compression. The default block size is 8192.
-c
Compress the specified file.
-d
Decompress the specified file.
-m
Mark the compressed file for automatic decompression on read. Can be used only in conjunction with -c.
EXIT STATUS
0
The command completed successfully.
-1
The command exited due to an error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
|Interface Stability |Private |
+-----------------------------+-----------------------------+
SEE ALSO
boot(1M), bootadm(1M), dcfs(7FS), ufs(7FS), attributes(5)
NOTES
This compression/decompression utility works only with files stored in a UFS file system.
There is no obvious way to determine whether a given file is compressed, other than copying the file and comparing the number of disk
blocks of the copy against the original.
SunOS 5.11 10 Dec 2008 fiocompress(1M)