01-28-2009
Thanks mate, although I ended up doing it with this before you replied:
find . -name "*.c" | cat | xargs grep -c ".*" | awk -F: '{ s+=$2 } END {print "TOTAL: ", s}'
Which I stumbled on by fluke, I look forward to using your simpler version, thanks.
~ Dan
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to write script to copy some files(/ppscdr/cdrp2p/temp/) from one directory to another directory using shell script. see the script below,
#!/bin/sh -f
dir_name=20061105
mkdir ${dir_name}
cd /ppscdr/cdrp2p/temp
pwd
cp p2p${dir_name}*.*... (4 Replies)
Discussion started by: maheshsri
4 Replies
2. UNIX for Advanced & Expert Users
Hi all, I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: #
root@host # pwd
/bin... (0 Replies)
Discussion started by: wcmmlynn
0 Replies
3. UNIX for Dummies Questions & Answers
is there a different command to display contents of a file on the output in bash shell? i tried more and it does not work. (7 Replies)
Discussion started by: npatwardhan
7 Replies
4. Shell Programming and Scripting
I want to just run this command from a bash script and
put it in variable.
date '+%M'
gives the minutes in solaris. (2 Replies)
Discussion started by: photon
2 Replies
5. UNIX for Dummies Questions & Answers
Doubt #1
I have a program that I want the user to input date. When the user inputs the date, is it able to format it to system date dd-mm-yyy and then echo the value into a text file?
Doubt#2
If the above is not going to work, I tried to have the system date appear in the user input field and... (6 Replies)
Discussion started by: frossie
6 Replies
6. Programming
hii to all
i am developing a simple unix shell in c i want to add history feature in that how could i do that plz help if there is any tutorial or website plz put it here
history feature should be like that in bash, when press up key show the previous command typed in console
plz be... (1 Reply)
Discussion started by: vipin_jss
1 Replies
7. Shell Programming and Scripting
Hi all. Suppose I have the following function in an executable file named "HOLA":
------------------------
function hola { echo "Hola ${@}."; }
------------------------
In addition, suppose that I want to execute the file so I can input my name next to ./HOLA. I mean,... (4 Replies)
Discussion started by: hresquivelo
4 Replies
8. Shell Programming and Scripting
Hi,
I am a complete Unix novice and need some help with creating a login shell script. I have created a file with user details i.e. PIN, name etc and require help in recalling the specified details from the file and being prompted for a password on login. Any help would be very much appreciated.... (0 Replies)
Discussion started by: tdsrogers
0 Replies
9. UNIX for Dummies Questions & Answers
Options::
A)$shell
B)echo $ bash
C)echo $ O
D)$ O (1 Reply)
Discussion started by: raghugowda
1 Replies
10. Shell Programming and Scripting
Migrating Unix batch jobs (Korn Shell) running in HP-UX server to Linux environment.
Hi All
Please help me to understand the easiest way to migrate Kernel Shell scripts to Linux Bash. Also let me know
1. Any automated scripts or tools available for this.
2. Challenges and issues... (5 Replies)
Discussion started by: cpremesh
5 Replies
LEARN ABOUT DEBIAN
felix-framework
FELIX(1) User Commands FELIX(1)
NAME
felix-framework - command line Felix OSGi Framework launcher
SYNOPSIS
felix-framework [-b <bundle-deploy-dir>] [<bundle-cache-dir>]
DESCRIPTION
felix-framework provide a way to start Apache Felix OSGi Framework from command line. After startup, it provide some simple commands to
help management of OSGi bundle.
OPTIONS
-b bundle-deploy-dir
The Felix launcher deploys all bundles in the auto-deploy directory into the framework instance during startup. By default, the
auto-deploy directory is /usr/share/felix-framework/bundle/ Specifying an auto-deploy directory replaces the default directory, it
does not augment it.
bundle-cache-dir
path you want to use as the bundle cache. If you specify a relative cache path, then it will be treated as relative to ~/.felix/ By
default, felix-framework will use ~/.felix/felix-cache/
FILES
/etc/felix-framework/config.properties
The system wide configuration file for Felix Framework. See <URL:http://felix.apache.org/site/apache-felix-framework-configuration-
properties.html> for further details.
FILES
~/.felix/
Default user cache directory for OSGi bundle information.
AUTHOR
Damien Raude-Morvan <drazzib@debian.org>
SEE ALSO
<URL:http://felix.apache.org/site/apache-felix-framework-usage-documentation.html>
Felix November 2011 FELIX(1)