08-26-2018
Hello Don,
Voila...
Both gives the expected output.
Thanks a lot!
Boris
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have 70 files and want to replace string1 with string2. How can i do that?.
Thanks (4 Replies)
Discussion started by: shashikandi
4 Replies
2. Shell Programming and Scripting
Hi All,
I have a file say abc.xml. In this file, I need to search for a pattern “SAP_GATEWAY_HOST”; if this pattern found and the next line also contain the pattern “nwprc03.cos” then I need to replace this pattern “nwprc03.cos” with some other pattern “nwdrc03.apjp”.
$ cat abc.xml... (3 Replies)
Discussion started by: Ritesh.patni84
3 Replies
3. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a file with the following content:
---------
a 3242 tc_5 gdfg4
random text
a 3242 tc_6 gdfg4
random text
a 3242 tc_7 gdfg4
random text
a 3242 tc_4 gdfg4
---------
I want to replace the lines containing tc_? (tc_5, tc_6 etc. even with unknown numbers) with the found... (5 Replies)
Discussion started by: joas
5 Replies
5. Shell Programming and Scripting
Hello All...
I have a text file (.ics) which I need to read into a variable but ONLY the part including and after 'BEGIN:VEVENT' and ending with END:VEVENT
Anything before BEGIN:VEVENT or after END:VEVENT should be ignored.
Thanks for input
Jeff
BEGIN:VCALENDAR
VERSION:2.0... (3 Replies)
Discussion started by: uptimejeff
3 Replies
6. Shell Programming and Scripting
How do I use awk to find the records in a file that contains two specific strings?
I have tried piping and using awk two times, but I don't know how to do it in one action. (2 Replies)
Discussion started by: locoroco
2 Replies
7. Shell Programming and Scripting
Hi All
There is another challenge which stand in front of me. And want all to have the experience with that
I have a file in Unix say a.txt. What I was trying is to read the file line by line and matching the line to particular pattern, and if that pattern found I want to replace that line... (5 Replies)
Discussion started by: adisky123
5 Replies
8. UNIX for Beginners Questions & Answers
My OS is Windows 10 and I am using Cygwin.
The file 1 content is:
USE solution 2; -4.000
USE solution 3; -4.000
…
USE solution 29; -4.000
USE solution 30; -4.000
USE solution 31; -4.000
….
USE solution 89; -4.000
...
USE solution 202; -4.000
etc...
I need to replace... (8 Replies)
Discussion started by: supernono06
8 Replies
9. Shell Programming and Scripting
Hello,
This is a bit complicated for me.
My scenario in MyFile:
Search string1,
When string1 is found, grep the line containing string1, go back over that line in upward direction and grep the first line containing string2.
Here is an example:
MyFile
His email address... (17 Replies)
Discussion started by: baris35
17 Replies
10. UNIX for Beginners Questions & Answers
I found this in the forum that searches a file for string1, substitute all occurrences of string2 with string3.
(Title: Replace string2 by string3 where string1 is found in line)
>> sed -i '/string1/s/string2/string3/g' TextFile
How will I perform the same sed command and only substitute... (3 Replies)
Discussion started by: apalex
3 Replies
LEARN ABOUT SUSE
gtk-update-icon-cache
GTK-UPDATE-ICON-C(1) [FIXME: manual] GTK-UPDATE-ICON-C(1)
NAME
gtk-update-icon-cache - Icon theme caching utility
SYNOPSIS
gtk-update-icon-cache [--force] [--ignore-theme-index] [--index-only] [--source [name]] [--quiet] [--validate] {iconpath}
DESCRIPTION
gtk-update-icon-cache creates mmap()able cache files for icon themes.
It expects to be given the path to a icon theme directory containing an index.theme, e.g. /usr/share/icons/hicolor, and writes a
icon-theme.cache containing cached information about the icons in the directory tree below the given directory.
GTK+ can use the cache files created by gtk-update-icon-cache to avoid a lot of system call and disk seek overhead when the application
starts. Since the format of the cache files allows them to be mmap()ed shared between multiple applications, the overall memory consumption
is reduced as well.
OPTIONS
--force, -f
Overwrite an existing cache file even if it appears to be uptodate.
--ignore-theme-index, -t
Don't check for the existence of 'index.theme' in the icon theme directory. Without this option, gtk-update-icon-cache refuses to
create an icon cache in a directory which does not appear to be the toplevel directory of an icon theme.
--index-only, -i
Don't include image data in the cache.
--source, -c
Output a C header file declaring a constant name with the contents of the icon cache.
--quiet, -q
Turn off verbose output.
--validate, -v
Validate existing icon cache.
BUGS
None known yet.
[FIXME: source] 05/02/2010 GTK-UPDATE-ICON-C(1)