Hi there,
I have a small issue with a script that I am running. I need it to ignore certain dir when copying over files. Ie the code is pointing towards the dir etest but I need to ignore the dirs INLINE and ENG which is contained within this...could anyone give me a pointer on how to do this? I already ignore one dir but how can this be done with multiples....
cheers
colin
Code:
cd /etest/
for dir in *; do
if [ "$dir" = "s25e3" ]; then
continue
fi
cp -p $dir/${dir}.prb $dir/${dir}.prb.backup
cp /path/to/s253e.prb $dir/${dir}.prb
done
Hi, does anyone know how to ignore whether a number is negative in a script. E.g. if I have a variable that contains -1200, how do I ignore the minus sign? (1 Reply)
I just wrote a tiny script with the help of ghostdog74 to search all my files for special content phrases.
After a few modifications I now made it work, but one problem is left. The files are located in public_html folder, so there might also be .htaccess files.
So I ignored scanning of that... (4 Replies)
Hi Gurus,
I'm need of a script in which we are finding an independent word ‘boy' in a log file. We are using grep in order to do the same. Now in this log file there are some sentences where we see ‘This is a boy' and we do not want to count word ‘boy' from this sentence.
So in other word we want... (2 Replies)
I have a simple script that processes files. Here's a simplified example of what I'm doing:
foreach t (web.*)
mv $t dnw$t:e.log
end
foreach t (card.*)
mv $t card$t:e.log
end
The problem is that sometimes there is no web.* file. In that case, I get an error "foreach: No match" and... (4 Replies)
Hi,
I have a situation where I want to ignore few users from list of users and print rest of user in log file.
say, I want to ignore aaa, bbb, ccc, ddd .. ppp from list of 20 user (do not want to include)
What is the good command or any script?
Thanks in advance. (1 Reply)
Hi,
I have a shell script, which reads a *.txt file - line by line. In this text file, I have some lines beginning with "#" that I want to ignore :
MY_FILE
#blah blah blah 1
blah blah blah 2
blah blah blah 3
#blah blah blah 4
I want my script to read only the following lines... (3 Replies)
Hi,
I currently use a script to extract *.deb files located in a Directory called
"/var/mobile/Media/Downloads"
The Problem is howver I want the script to ignore the folder:
"/var/mobile/Media/Downloads/New Debs and Files"
(it shall NOT decompile any of the files in that folder.
Here is... (2 Replies)
Hello,
i have bash script where im cycling some command for different lines in external file.
example:
while read domain;do
nslookupout=$(nslookup -type=ns $domain) || true
another commands
done < filenamewithdomains
i added:
|| true
after the command in belief it will just skip... (6 Replies)
Hi
i am really new to linux scripting and i need a little bit help.
i have the following script:
find "/usr/share/nextcloud/data/__groupfolders" -type f -mtime +14 -exec rm {} \;
but i don't want to delete everything. I want to ignore .txt files. How can i do this? (3 Replies)
Hi All,
I am trying to use below syntax to find ignore multiple locations while searching for a file.
find / -name "$serviceitem" ! -size 0 2>&1 |egrep -v "tmp|docker|WinSxS|Permission|HISTORY|alternatives|bearer11ssl|manifest"
I tried to assign all the ignore strings to one variable... (2 Replies)
Discussion started by: sravani25
2 Replies
LEARN ABOUT DEBIAN
ocaml-gettext
OCAML-GETTEXT(5) [FIXME: manual] OCAML-GETTEXT(5)NAME
ocaml-gettext - common options to manage internationalisation in OCaml program through ocaml-gettext library.
SYNOPSIS
[--gettext-failsafe
[{ignore} | {inform-stderr} | {raise-exception}]]
[--gettext-disable] [--gettext-domain-dir {textdomain} {dir}]
[--gettext-dir {dir}]
[--gettext-language {language}]
[--gettext-codeset {codeset}]
OCAML-GETTEXT OPTIONS
This section describes briefly the common options provided by programs using ocaml-gettext library.
--gettext-failsafe ignore
Defines the behaviour of ocaml-gettext regarding any error that could be encountered during the processing of string translation.
ignore is the default behaviour. The string returned is the original string untranslated. This behaviour is consistent and allows to
have a usable output, even if it is not perfect.
--gettext-failsafe inform-stderr
Same behaviour as ignore, except that a message is printed on stderr,
--gettext-failsafe raise-exception
Stops the program by raising an exception when an error is encountered.
--gettext-disable
Disables any translation made by ocaml-gettext. All translations return the original string untranslated.
--gettext-domain-dir textdomain dir
Defines a dir to search for a specific domain. This could be useful if MO files are stored in a non standard directory.
--gettext-dir dir
Adds a directory to search for MO files.
--gettext-language language
Sets the language to use in ocaml-gettext library. The language should be POSIX compliant. The language should follow the following
convention: lang[_territory][.charset][@modifier]. The lang and territory should be two letters ISO code. Charset should be a valid ISO
character set (at least recognised by the underlying charset recoding routine). For example, valid languages are:
fr_FR.ISO-8859-1@euro, de_DE.UTF-8.
--gettext-codeset codeset
Sets the codeset for output.
Users should be aware that these command line options, apply only for strings after the initialisation of the library. This means that if
the options initially guessed by ocaml-gettext don't match the command line provided, there should be some untranslated string, because
these strings are translated before parsing options. This is particularly true for the usage message itself (--help): even if the strings
are translated, they are translated before setting the correct option.
Some options (--gettext-codeset for example) are overrided internally for particular use. It should be required to always translate strings
to UTF-8 in graphical user interface (because GTK2 requires it).
ocaml-gettext 2008-04-29 OCAML-GETTEXT(5)