What is the smartest way to just extract file name from a full path name.
e.g. if I have
/usr/sanjay/bin/file_name.c
I want only file_name.c
Sanjay (2 Replies)
given a relative path, how do i convert it into a full one. i.e. if i am in
/home/polypus
and i am given foo/bar then to get a full path i can just concatinate it with pwd, but what if i am given "../mama"
how do i programmatically convert:
/home/polypus and ../mama into ... (4 Replies)
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Hi,
Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable?
for eg: suppose the PATH is being set as follows
PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4
... (2 Replies)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
My input is as below :
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt
/splunk/scrubbed/triumph/ifind.triumph.txt
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT SUSE
debconf-getlang
DEBCONF-GETLANG(1) Debconf DEBCONF-GETLANG(1)NAME
debconf-getlang - extract a language from a templates file
SYNOPSIS
debconf-getlang lang master [translation]
debconf-getlang --stats master translation [...]
DESCRIPTION
Note: This utility is deprecated; you should switch to using the po-debconf package.
This program helps make and manage translations of debconf templates. There are basically three situations in which this program might be
called:
A translation is just being started.
You want to provide the translator with a file they can work on that has the English fields from your templates file, plus blank Field-
ll fields for the target language that they can fill in.
To do this, run the program with first parameter being the code for the language that is being translated to, and the second parameter
being the filename of the English templates file.
A translation is well under way.
You have changed some English text, or added more items to your templates file, and you want to send the translators a file with the
English text plus their current translations (or you are the translator, and you want to generate such a file for your own use).
To accomplish this, run the program with the first parameter being the the code for the language that is being translated to, the
second parameter being the filename of the master English templates file, and the third parameter being the filename of the current
translated file.
When run this way, the program is smart enough to notice fuzzy translations. For example a fuzzy Description will be output as
Description-<lang>-fuzzy, and a new, blank Description-<lang> will be added. Translators should remove the -fuzzy fields as they
correct the fuzzy translations.
Checking the status of a translation
To check the status of a translation, use the --status flag, and pass the english template file as the first parameter, and all the
other translated templates after that. It will output statistics for each of them. For example:
debconf-getlang --stats debian/templates debian/templates.*
NOTE
Note that the text in the generated templates may be word-wrapped by debconf.
SEE ALSO debconf-mergetemplate(1)AUTHOR
Joey Hess <joeyh@debian.org>
2012-09-10 DEBCONF-GETLANG(1)