I am checking whether each line is having "n" number of commas or nor. In case not then I need to exit the process.
I tried
It's working fine. However the number of records in the file is around .5 million. So it's taking too much time to process it. Anyway I can improve the performance?
Hi there,
I'm wanting to produce a shell script that will check through some file names and identify a skip in sequence (four digit seq num in file name).
I have played on the idea of havng a file that has a sorted list of file names which I can read line at a time and cut out the sequence... (1 Reply)
Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me.
I have a file say:
abc
def
ccc
ddd
ffff
The output should be:
Instance1=abc
Instance2=def
Instance3=ccc
Instance4=ddd
Instance5=ffff
... (2 Replies)
Hi,
I have a huge file & I want to add a specific text in column. But I want to add this text from a specific line number to a specific line number & another text in to another range of line numbers.
To be more specific: lets say my file has 1000 lines & 4 Columns. I want to add text "Hello"... (2 Replies)
Hi Everybody,
I am trying to write a script that will get some perticuler data from a file and redirect to a file.
My Question is,
I have a Very huge file,In that file I have my required data is started from 25th line and it will ends in 100th line.
I know the line numbers, I need to get all... (9 Replies)
Hi,
Newbie here. I have a file that consists of data that I want to convert to a csv file. For example:
Jul 20 2008 1111 / visit home / BlackBerry8830/4.2.2 Profile/MIDP-2.0 Configuration/CLOC-1.1 VendorID/105
Jul 21 2008 22222 / add friend / BlackBerry8830/4.2.2 Profile/MIDP-2.0... (3 Replies)
Hi all,
I am having problems counting commas (,) from a variable in shell scripting..
the variable contains similiar to: ID@NAME@DESCRIPTION,ID@NAME@DESCRIPTION, .....
It can go on and on..
So i need to count the number of sets i.e.( ID@NAME@DESCRIPTION is one set) and process the... (4 Replies)
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
ok im trying to find out how many cars a user enters. Its giving me an error message of "integer expression expected"
Basically if i enter any number over 0 (zero) it should continue
read -p "How many cars:" carsn
test $cars -ge 1
test $? -ne 0 && read -p "Invalid number.... (8 Replies)
Hello everyone,
I don't really know anything about scripting, but I have to manage to make this script, out of necessity.
#!/bin/bash
while read -r line; do #I'm reading from a big wordlist
instructions using $line
done
Is there a way to automatically write the $line number the script... (4 Replies)
Hello everyone,
I am manipulating a large CSV file and am trying to read it into a program and started running into trouble. The have manually edited the file trying to make it correctly run through the program and have made progress. However, I am know stuck with an issue involving too many... (3 Replies)
Discussion started by: tastybrownies
3 Replies
LEARN ABOUT HPUX
tunefstab
tunefstab(4) Kernel Interfaces Manual tunefstab(4)NAME
tunefstab - VxFS file system tuning parameters table
DESCRIPTION
The file contains tuning parameters for VxFS file systems. sets the tuning parameters for mounted file systems by processing command line
options or by reading parameters in the file.
Each entry in is a line of fields in one of the following formats:
block-device tunefs-options
system-default tunefs-options
block-device is the name of the device on which the file system is mounted. If there is more than one line that specifies options for a
device, each line is processed and the options are set in order.
In place of block-device, system-default specifies tunables for each device to process. If there is an entry for both a block-device and
system-default, the system-default value takes precedence.
Lines in that start with the pound (#) character are treated as comments and ignored.
The tunefs-options correspond to the tunable parameters that and set on the file system. Each option in this list is a name=value pair.
Separate the options by commas, with no spaces or tabs between the options and commas.
See the vxtunefs(1M) manual page for a description of the supported options.
EXAMPLES
If you have a four column striped volume, with a stripe unit size of 128 kilobytes per disk, set the and parameters 128 and four, respec-
tively. You can do this in two ways:
or:
To set the discovered direct I/O size lower so that it is always lower than the default, add the following line to the file:
FILES
Default file.
SEE ALSO mkfs_vxfs(1M), mount(1M), vxtunefs(1M).
tunefstab(4)