10-15-2004
directories
Hai,
if you use ls -LR | grep ^[.] it will not list hidden directories if you want to see hidden directories use.
du -h | awk '{print $2}'
arunkumar
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
This is driving me mad, where am I going wrong?
The relevant segment of code:
sub getndsybcons {
my @servers=@{$_};
my @sybservers=@{$_};
my %results;
foreach my $server(@servers) {
my $biggestsyb;
my $biggestsybval=0;
... (9 Replies)
Discussion started by: Smiling Dragon
9 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies
5. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Discussion started by: jville
1 Replies
6. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
7. Shell Programming and Scripting
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
PAC(8) BSD System Manager's Manual PAC(8)
NAME
pac -- printer/plotter accounting information
SYNOPSIS
pac [-cmrs] [-Pprinter] [-pprice] [user ...]
DESCRIPTION
pac reads the printer/plotter accounting files, accumulating the number of pages (the usual case) or feet (for raster devices) of paper con-
sumed by each named user, and prints out how much each user consumed in pages or feet and dollars.
When no user arguments are given, statistics are printed for every user who has used any paper.
The options are as follows:
-Pprinter
Accounting is done for the named printer. Normally, accounting is done for the default printer (site dependent) or the value of the
environment variable PRINTER is used.
-c Causes the output to be sorted by cost; usually the output is sorted alphabetically by name.
-m Causes the host name to be ignored in the accounting file. This allows for a user on multiple machines to have all of his printing
charges grouped together.
-pprice
The value price is used for the cost in dollars instead of the default value of 0.02 or the price specified in /etc/printcap.
-r Reverse the sorting order.
-s Accounting information is summarized on the summary accounting file; this summarization is necessary since on a busy system, the
accounting file can grow by several lines per day.
OUTPUT FORMAT
pac formats the output into a simple table, using four columns:
1. The host name followed by the user's login name (column "Login"). If the -m option was specified, the host name will be omitted.
2. The number of pages or feet printed (column "pages/feet").
3. The number of copies made (column "runs").
4. The total price for the user (column "price").
If no user argument was specified, pac will print a summary line with print totals.
FILES
/var/account/?acct raw accounting files
/var/account/?_sum summary accounting files
/etc/printcap printer capability database
SEE ALSO
printcap(5)
HISTORY
The pac command appeared in 4.0BSD.
BUGS
The relationship between the computed price and reality is as yet unknown.
BSD
May 31, 2007 BSD