07-08-2003
The period is what I needed. Thanks again for the help, Oombera.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Anyone know how to use SED to append a comma to the end of each line
example:
field1,field2,field3,field4
If i Cat /textfile ---- How can i append the end of /textfile with a comman? (8 Replies)
Discussion started by: Redg
8 Replies
2. Shell Programming and Scripting
I have a file with a bunch of similar lines in which I want to extract a phrase delimited by the first occurance of a '>' at the beginning and the first occurance of a '<' at the end (you might have guessed these are beginning/end of HTML tags). Using Sed I have managed to delete up to and... (7 Replies)
Discussion started by: coldcanuck
7 Replies
3. UNIX for Dummies Questions & Answers
This is the line that I am using:
sed 's/^*\({3}*$\)/\1 /' <test.txt >results.txt
and suppose that test.txt contains the following lines:
http://www.example.com/200904/AUS.txt
http://www.example.com/200903/_RUS.txt
http://www.example.com/200902/.FRA.txt
What I expected to see in results.txt... (6 Replies)
Discussion started by: figaro
6 Replies
4. Shell Programming and Scripting
Example,
Trying to replace text to the end of a line.
Text file looks like this
PP= 4
PP= 412
PP= 425
I want to replace only the following line:
PP= 4
with
PP= 2
How can this be done with sed? (3 Replies)
Discussion started by: hanson397
3 Replies
5. Shell Programming and Scripting
Hello All,
I have a doubt in sed, i want to add some parameter at the end of the tag inside a xml tag. how to i do that. so i want to add Results="true" value="high" inside the xml tag.
Orignal
<execute description="reboot">
<execute description="Stop Servlet">
After adding the... (5 Replies)
Discussion started by: asirohi
5 Replies
6. Shell Programming and Scripting
Hi !
I'm rather new with sed ... learned a lot already by googling etc ...
The following script should replace all spaces and ends-of-lines with "something (see below).
#!/bin/bash
i=0
while read line
do
fam="H`printf "%06d" $i`"
echo $line | sed -e 's//\t'$fam'\n/g'
i=$(($i+1))... (7 Replies)
Discussion started by: jossojjos
7 Replies
7. UNIX for Dummies Questions & Answers
Hello Friends, How can I remove the last two values of this line using sed
John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638:9/3/90:45900
The result should look like this:
John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638 (3 Replies)
Discussion started by: humkhn
3 Replies
8. Shell Programming and Scripting
All:
Can somebody help me out with a sed command, which removes the the first occurance of ')' until the end of the line
If I have the following input
... (5 Replies)
Discussion started by: BeefStu
5 Replies
9. Shell Programming and Scripting
how to use sed to put .txt end of line..my input file below
file1
make=^bak12^".
DEV=LONG^cmd/usr/bak/ade4^"
.....................................
file 2
make=^and_LONG/bak12^".
DEV=LONG^cmd/usr/bak/ban3^"
..........................................
file 3... (6 Replies)
Discussion started by: zulabc
6 Replies
10. Shell Programming and Scripting
Dear Unix Experts :),
Below is a small section of a large file with the following list:
1. Starts with string " interest" as the heading
2. Followed by a list of activities
3. Ends with a blank line before starting with another different list.
E.g.
Sporting interest
football... (13 Replies)
Discussion started by: gjackson123
13 Replies
LEARN ABOUT FREEBSD
quota.user
QUOTA.USER(5) BSD File Formats Manual QUOTA.USER(5)
NAME
quota.user, quota.group -- per file system quota database
DESCRIPTION
Each file system with active quotas should contain a quota.user and quota.group file in the file system root. These files are created by
quotacheck(8), and should be edited with edquota(8). It is possible to specify a different location and file name with the ``userquota'' and
``groupquota'' options in the fstab(5) file.
The data files contain the following information:
o Current block usage
o Current number of files
o Soft block limit
o Soft file limit
o Hard block limit
o Hard file limit
o Block grace time remaining if over the soft limit
o File grace time remaining if over the soft limit
See edquota(8) for an explanation on the various limits and grace periods.
During normal quota operations the quotactl(2) interface is used to query or set quota information and the kernel will maintain the data
files as needed. If quotas are disabled on a file system, but marked as having quotas enabled in fstab(5), then the quota data files will be
used directly.
The data files are stored as an array of ``struct dqblk'' structures, as defined in <ufs/ufs/quota.h>, and indexed by UID or GID. The data
files will be written as a sparse file if possible. Data is only maintained for ids that have either non-zero usage or non-zero quota lim-
its. If an attempt is made to access data for an id that would exist past the end of the current data file, a quota structure with all val-
ues set to zero will be created, and the data file extended as needed. The quotacheck(8) utility will truncate the data files to the minimum
size needed to store the highest id with either non-zero file usage or non-zero quota limits.
The data record for id 0 has special meaning. If the ``dqb_btime'' or ``dbq_itime'' fields are non-zero, they are used to indicate the grace
period on that file system for users who have exceeded their soft limit. These times can be set by edquota(8) with the -t flag. If no
explicit grace period has been set with edquota(8), then the default value of 7 days will be used. The default values are defined by
MAX_DQ_TIME and MAX_IQ_TIME in <ufs/ufs/quota.h>.
SEE ALSO
quota(1), quotactl(2), fstab(5), edquota(8), quotacheck(8), quotaoff(8), quotaon(8), repquota(8)
BSD
October 30, 2007 BSD