38.107.191.112 |    

Navigation

Google Advertisement

Diese Funktion ist dazu gedacht, um den Dateinamen aus einen Unix/Windows Pfad zu extrahieren. Ist am Dateinamen, wie in einer Apache Logdatei ein Querystring dran, wird dieser abgeschnitten.

filename
  1. # **************************************************************
  2. # filename -- extract the filename from file path
  3. #
  4. #     string filename( string string )
  5.  
  6. function filename() {
  7.  
  8. local str="$*"
  9. str=$( echo $str | egrep -o '([^\/]+)$' | cut -d? -f1 )
  10. echo $str
  11.  
  12. }
Parsed in 0.017 seconds at 16.11 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
urlencode
(Perl::Function)
gethostbyaddr
(Perl::Function)
create_function
(JavaScript::Snippets)
function_exists
(JavaScript::Snippets)
listing
(PHP::Function)
runPhpCode
(PHP::Function)
md5
(Bash::Function)
rtrim
(Bash::Function)
ltrim
(Bash::Function)
function_exists
(Bash::Function)