10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone!
I have thousands of csv files I have to import into a Database table. As usually the files aren't perfect. For example they have a different number of columns and some weird columns.
The second problem is, that I have to add 3 parts of the filename into 3 rows in the... (6 Replies)
Discussion started by: elRonaldo
6 Replies
2. Shell Programming and Scripting
hi every one. one of my friends has writen this script and send it to me. this script can find files that add-delete-modify and also send an alert by email
i'm not catch all part of it.
can anyone explain me how this work
#!/bin/bash
START="a.txt"
END="b.txt"
DIFF="c.txt"
mv ${START}... (4 Replies)
Discussion started by: nimafire
4 Replies
3. Shell Programming and Scripting
Hello, I have about 3400 files in a tree structure (about 80% are html files).
1. I need to modify every html file to remove <p> style and old things like font attribute and add another style.
2. I need to change the root of all links that are in the html. e.g. change /old/path/ to /new/path... (1 Reply)
Discussion started by: Yaazkal
1 Replies
4. Shell Programming and Scripting
Hi, I'm having the following problem.
I have some files to modify, between a large number of files.
I thought the following code
aux2=`grep -l 2.2.17 *`
print "$aux2"
aux3=`ls -l *.ksh | wc -l`
print "$aux3"
while ; do
print "The counter is $aux3"
#Add the sed here
... (3 Replies)
Discussion started by: radicaled
3 Replies
5. Shell Programming and Scripting
Hi. I've been racking my brain on a project I've been working on for work, and hope someone here might be of assistance. Basically I'm trying to create dynamically generated .forward files for users/aliases on my email server. The intent is for these files to be generated automatically any time... (3 Replies)
Discussion started by: adotte
3 Replies
6. Shell Programming and Scripting
Hello,
I am new to sed and hope that someone can help me with the following task.
I need to modify a txt file which has format like this:
xy=CreateDB|head.queue|head.source|head.definition|rtf.edit|rtf.task|rft.cut
abc|source|divine|line4|5|true
into something like:
head.queue=abc... (19 Replies)
Discussion started by: pinkypunky
19 Replies
7. Shell Programming and Scripting
Hello,
I have a log file that has following output as below.
LAP.sun5 CC
LAP.sun5 CQ
perl.sun5 CC
perl.sun5 CQ
TSLogger.sun5 CC
TSLogger.sun5 CQ
TSLogger.sun5 KR
WAS.sun5 CC
WAS.sun5 MT
WAS.sun5 CQ
I want to output to be in the way below, i tried using awk but could not do it. ... (12 Replies)
Discussion started by: asirohi
12 Replies
8. Shell Programming and Scripting
hi there.
I'm at SunOS 5.9
At my new job i'm using UNIX, and it's my first time.
i'm trying to make a script for:
-find files with a name passed to it as parameter
-compare results with file size passed as parameter too
-when comparison's true --> move file
-if not--> make nothing
... (3 Replies)
Discussion started by: viko
3 Replies
9. UNIX for Advanced & Expert Users
Hello, all
I want to implement some actions on the specified files, to modify some contents in the files, as follows:
File1:
****
name carol
birthday 830319
*******
name billy
birthday 831001
***************
____________________________
The... (3 Replies)
Discussion started by: tpltp
3 Replies
10. UNIX for Dummies Questions & Answers
hi all, any ideas how we can permanently modify the open files?
bash-2.03$ ulimit -a
core file size (blocks) 0
data seg size (kbytes) unlimited
file size (blocks) unlimited
open files 256 <---------------
pipe size (512 bytes) 10
stack size... (2 Replies)
Discussion started by: 3rr0r_3rr0r
2 Replies
tunefs(1M) tunefs(1M)
NAME
tunefs - tune up an existing HFS file system
SYNOPSIS
maxcontig] rotdelay] maxbpg] minfree]
advanced read-ahead] special-device
DESCRIPTION
The command is used to alter dynamic parameters that affect HFS file system layout policies. Parameters to be altered are specified by the
options and arguments provided on the command line as described below.
affects how the file system blocks are laid out on the disk. The default rotdelay value set by the and commands (see newfs(1M) and
mkfs(1M)) is 0 milliseconds, causing file system blocks to be written and read consecutively. In general, this should be the optimal tun-
ing, making the use of unnecessary.
Options
recognizes the following options and command-line arguments:
Set the maximum number of contiguous blocks that will be laid out
before forcing a rotational delay to maxcontig (see below). The default value is because most device drivers require
one interrupt per disk transfer. For device drivers that can chain several buffers together in a single transfer,
set maxcontig to the maximum chain length.
rotdelay is the expected time (in milliseconds) to service a transfer completion interrupt and initiate a new transfer on the
same disk. It is used to determine how much rotational spacing to place between successive blocks in a file.
maxbpg specifies the maximum number of blocks any single file can allocate out of a cylinder group before it is forced to
begin allocating blocks from another cylinder group. Typically this value is set to about one fourth of the total
blocks in a cylinder group. The intent is to prevent any single file from using up all the blocks in a single cylin-
der group, thus degrading access times for all files subsequently allocated in that cylinder group. The effect of
this limit is to cause large files to do long seeks more frequently than if they were allowed to allocate all the
blocks in a cylinder group before seeking elsewhere. For file systems with exclusively large files, this parameter
should be set higher.
minfree specifies the percentage of space that is not available to normal users; i.e., the minimum free space threshold. The
default value used is 10%. This value can be set to zero. If set to zero, throughput performance drops to as little
as one-third of the efficiency expected when the threshold is set at 10%. Note that if minfree is raised above the
current usage level, users cannot allocate files until enough files have been deleted to meet the new threshold
requirement.
Advanced read-ahead
specifies whether the file system should use an advanced predictive read-ahead algorithm. The implementation
requires more system resources in exchange for an advanced access pattern recognition. Patterns include forward
sequential, backward sequential, forward strided, and backward strided. This value can be set to zero (disable) or
one (enable). By default, a file system will have advanced read-ahead enabled when created.
(visual) Display current values
contained in the primary super-block to standard output.
(all) Modify redundant super-blocks as well as the primary super-block
as stipulated by the configuration options and arguments.
special-device is the name of the file system to be tuned. It is either a block or character special file if the file system is not
mounted, or a block special file if the file system is mounted.
WARNINGS
Root file system tuning is normally done during initial system software installation. Tuning the root file system after installation has
little useful effect because so many files have already been written.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
dumpfs(1M), mkfs(1M), newfs(1M).
tunefs(1M)