HI,
I am learning the basics of UNIX on my Mac OS X system but whenever I type the "jobs" command I just get the prompt again, with no output. Regardless of how many programmes or activities are processing.
Any ideas? (4 Replies)
Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
I have three files a.txt , b.txt , c.txt in a directory called my_dir1 .These files were created before two or three months . I have a tar file called my_tar1.tar which contains three files a.txt , b.txt , d.txt . Somebody untarred the my_tar1.tar into my_dir1 directory. So existing two files were... (1 Reply)
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)
I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank).
In a first approach I coded:
find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt
But this doesn't work. I got an error (under Ubuntu):
grep:... (5 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
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)
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
LEARN ABOUT BSD
prof
PROF(1) General Commands Manual PROF(1)NAME
prof - display profile data
SYNOPSIS
prof [ -a ] [ -l ] [ -n ] [ -z ] [ -s ] [ -v [ -low [ -high ] ] ] [ a.out [ mon.out ... ] ]
DESCRIPTION
Prof interprets the file produced by the monitor subroutine. Under default modes, the symbol table in the named object file (a.out
default) is read and correlated with the profile file (mon.out default). For each external symbol, the percentage of time spent executing
between that symbol and the next is printed (in decreasing order), together with the number of times that routine was called and the number
of milliseconds per call. If more than one profile file is specified, the output represents the sum of the profiles.
In order for the number of calls to a routine to be tallied, the -p option of cc, f77 or pc must have been given when the file containing
the routine was compiled. This option also arranges for the profile file to be produced automatically.
Options are:
-a all symbols are reported rather than just external symbols.
-l the output is sorted by symbol value.
-n the output is sorted by number of calls
-s a summary profile file is produced in mon.sum. This is really only useful when more than one profile file is specified.
-v all printing is suppressed and a graphic version of the profile is produced on the standard output for display by the plot(1) fil-
ters. When plotting, the numbers low and high, by default 0 and 100, may be given to cause a selected percentage of the profile to
be plotted with accordingly higher resolution.
-z routines which have zero usage (as indicated by call counts and accumulated time) are nevertheless printed in the output.
FILES
mon.out for profile
a.out for namelist
mon.sum for summary profile
SEE ALSO monitor(3), profil(2), cc(1), plot(1G)BUGS
Beware of quantization errors.
Is confused by f77 which puts the entry points at the bottom of subroutines and functions.
4th Berkeley Distribution April 29, 1985 PROF(1)