Sponsored Content
Full Discussion: Initials of a name
Top Forums Shell Programming and Scripting Initials of a name Post 302590150 by Aqualung71 on Saturday 14th of January 2012 10:55:13 AM
Old 01-14-2012
just delete all uncapitalised characters:

Code:
echo "Eric Cartman" | sed "s/[a-z]//g"

 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find a file with common initials and last words

Hi, I have a requirement like i have to find out files and remove them on a daily basis. The files are generated as abc_jnfn_201404230004.csv abc_jnfo_201404230004.csv abc_jnfp_201404230004.csv abc_jnfq_201404230004.csv abd_jnfn_201404220004.csv abe_jnfn_201404220004.csv i want to... (1 Reply)
Discussion started by: Mohammed_Tabish
1 Replies

2. UNIX for Beginners Questions & Answers

Versioning up a file with initials?

I have this code that works great ... #!/bin/sh for file in "$@" do ext=${file##*.} base=${file%.*} num=${base##*v} zeroes=${num%%*} num=${num#$zeroes} #remove leading zeros, or it uses octal num=$((num+1)) base=${base%v*} ... (5 Replies)
Discussion started by: scribling
5 Replies
LIBGPHOTO2_PORT(3)					  The gPhoto2 Reference (the man					LIBGPHOTO2_PORT(3)

NAME
libgphoto2_port - cross-platform port access library SYNOPSIS
#include <gphoto2/gphoto2_port.h> DESCRIPTION
The libgphoto2_port library was written to provide libgphoto2(3) with a generic way of accessing ports. In this function, libgphoto2_port is the successor of the libgpio library. Currently, libgphoto2_port supports serial (RS-232) and USB connections, the latter requiring libusb to be installed. The autogenerated API docs will be added here in the future. ENVIRONMENT VARIABLES
IOLIBS If set, defines the directory where the libgphoto2_port library looks for its I/O drivers (iolibs). You only need to set this on OS/2 systems and broken/test installations. LD_DEBUG Set this to all to receive lots of debug information regarding library loading on ld based systems. USB_DEBUG If set, defines the numeric debug level with which the libusb library will print messages. In order to get some debug output, set it to 1. SEE ALSO
libgphoto2(3), The gPhoto2 Manual, [1]gphoto website, automatically generated API docs, [2]libusb website AUTHOR
The gPhoto2 Team. Hans Ulrich Niedermann <gp@n-dimensional.de>. (man page) REFERENCES
1. gphoto website http://www.gphoto.org/ 2. libusb website http://libusb.sourceforge.net/ 08/16/2006 LIBGPHOTO2_PORT(3)
All times are GMT -4. The time now is 02:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy