02-09-2011
also after i do this, when i print it , nothing comes up, i dont want to create a new string to fix this, what is wrong?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a small query. I have a file containing the following lines
abcd<12></12>fdfgdf<12>sdfgfg<12>
sdfsdf<12></12>ytunfg<12>
hggfhf<12>rtysb<12>zdfgdfg<12>
Now I wish to delete ONLY the last occurance of string <12> from every lines of code. That mease my final output will be like this:... (7 Replies)
Discussion started by: dkhanna01
7 Replies
2. Shell Programming and Scripting
I need help to strip out the first two characters of the variable $FileName. Please help.
FileName=`find . -mtime +0 -name '*'`
Contents of variable $FileName:
./SRIZVI4.MCR_IDEAS_REPORT.LAST.052705.075405.csv
I want to strip out "./" and place the contents in another variable. How do I... (3 Replies)
Discussion started by: mh53j_fe
3 Replies
3. Shell Programming and Scripting
Hi. I want to remove a substring from a string. If I use the "tr" command, it doesn't seem to to what I want it to:
echo './somestring.dat' | tr -d './'
results in
somestringdat
I want it to remove only occurances of the string './', rather than the individual character. The result... (1 Reply)
Discussion started by: dmilks
1 Replies
4. UNIX for Advanced & Expert Users
While writing a shell script i happen to store some value in a string. Lets say the value is 59788.
Now in this script i want to get the value 9788 removing the first charater 5. The original string length usually remains constant.
Is there a single line command to do this or any simple way to... (4 Replies)
Discussion started by: npn
4 Replies
5. Shell Programming and Scripting
I want a user to be able to paste in a string like "01 3F 20 1F" and have the script reformat it to "013F201F" to pass it on to the next step.
I was trying to figure it out with awk but wasnt working well.
Never mind, found answer. did not know about tr :) (7 Replies)
Discussion started by: ippy98
7 Replies
6. Shell Programming and Scripting
Hi ,
I have a file with the following contents in file test1.txt .
AMY_MTT_240Y001,N60_PG2_10G001,A2H_P3H_10G002,7C7_7D7_NP1,A2E_PV0_10G002,L78_PG1_64S001,A2H_P2M_NP2,LDN_YSN_64S001,WV6_WYV_64... (5 Replies)
Discussion started by: kinny
5 Replies
7. Shell Programming and Scripting
i have input in below form
part=gfjhwhedaqh=ghdgwg^*^(G==
i want to remove the starting "part=" and retain the remaining. please suggest (4 Replies)
Discussion started by: skyineyes
4 Replies
8. Shell Programming and Scripting
I'm writing a UNIX script to interpret text files and search for certain strings to output and need to delete certain lines that contain characters that I would like removed from the file. The rest of the script is already completed and I have it output how I would like, but I cannot seem to get... (2 Replies)
Discussion started by: DetroitLolcat
2 Replies
9. Shell Programming and Scripting
Hello everyone,
I want to remove only prefix ME_ from all the values that are present in the FILEA. Below code I'm using for this.
sed 's/ME\_//g' FILEA > FILEB
Using the above code, all ME_ values are getting removed from the file. But the problem here is I want to remove only Prefix ME_... (4 Replies)
Discussion started by: ed_9
4 Replies
10. Shell Programming and Scripting
What I need is to remove the text from Location_file.txt from each line matching all entries from Remove_location.txt
Location_file.txt
FlowPrePaid, h3nmg1cm2,Jamaica_MTAImageFileFlowPrePaid,h0nmg1cm1, Flow_BeatTest,FlowRockTest
FlowNewTest,FlowNewTest,h0nmg1cm1
PartiallySubscribed,... (3 Replies)
Discussion started by: ketanraut
3 Replies
QUOTA(8) System Manager's Manual QUOTA(8)
*
NAME
quota - report and optionally fix quota usage
SYNOPSIS
quota [ -C config-file ] [ -d domain ] [ -f ] [ mailbox-prefix... ]
DESCRIPTION
Quota generates a report listing quota roots, giving their limits and usage. If the -f option is given, quota first fixes any inconsisten-
cies in the quota subsystem, such as mailboxes with the wrong quota root or quota roots with the wrong quota usage reported. If an
optional domain is given, the quota listing (and inconsistency fixing) is performed in that domain rather than the default domain. If any
optional mailbox-prefix arguments are given, the quota listing (and inconsistency fixing) is limited to quota roots with names that start
with one of the given prefixes.
Running quota with both the -f option and mailbox-prefix arguments is not recommended.
Quota reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C.
OPTIONS
-C config-file
Read configuration options from config-file.
-d domain
List/fix quotas in domain.
-f Fix any inconsistencies in the quota subsystem before generating a report.
FILES
/etc/imapd.conf
CMU
Project Cyrus QUOTA(8)