05-27-2010
Thanks, alister! That's exactly what I needed!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there, if i have some strings ie
test_324423
test_242332
test_767667
but I only want the number part (the bolded bit) how do I strip the leftmost 5 characters from the output so that i will have just
324423
242332
767667
any help would be greatly appreciated
Gary (5 Replies)
Discussion started by: hcclnoodles
5 Replies
2. Shell Programming and Scripting
Hi ,
i have to strip the spaces in the string which has the following value
ABC DEF
i want this to appear like this
ABC DEF
is there any spilt method?
please help....
Thanks (3 Replies)
Discussion started by: rag84dec
3 Replies
3. Shell Programming and Scripting
I am trying to strip out certain characters from a string on both (left & right) sides. For example, line=see@hear|touch, i only want to echo the "hear" part. Well i have tried this approach:
line=see@hear|touch
templine=${line#*@} #removed "see@"
echo ${templine%%\|*} #removed... (4 Replies)
Discussion started by: mcoblefias
4 Replies
4. Shell Programming and Scripting
I have a variable that has an absolute path for a file on my computer. This dynamically changes. Is there a way I can assign two new variables from that one?
variable: /Users/keith/Desktop/test/file.mov
1) filename - no path or extention ....so just....file
2) path no filename or... (3 Replies)
Discussion started by: mainegate
3 Replies
5. Shell Programming and Scripting
I want to create a temp file which is named based on a search string. The search string may contain spaces or characters that aren't supposed to be used in filenames so I want to strip those out.
My thought was to use 'tr' with but the result is the opposite of what I want:
$ echo "test... (5 Replies)
Discussion started by: mglenney
5 Replies
6. Shell Programming and Scripting
Dear experts,
my problem is pretty tricky.
I want to change a file (see attached input.txt), according to another file (help.txt). The output that is desired is in output.txt. The example is attached.
Note that
-dashes should not be treated specially, they are considered normal characters,... (2 Replies)
Discussion started by: TheTransporter
2 Replies
7. Shell Programming and Scripting
From a shell script, I'm trying to get the first two characters of an environment variable.
If I type at the command promot:
XX=`echo $MYVAR | cut -c1-2`
echo $XX
It works just fine
However, if I execute the exact same thing from a shell script, I get:
cut: you must specify a list of... (2 Replies)
Discussion started by: Boomn4x4
2 Replies
8. Shell Programming and Scripting
I am parsing a file and I get differnt results everytime.
Sometimes I get 12s sometimes I get 54m and sometime 3h..
v1=12s or v1=54m or v1=3h
12s - 12 seconds
54m - 54 minutes
3h - 3 hour
I have to write a script in such a way that it whenever v1 is in minutes,
I should strip "m"... (14 Replies)
Discussion started by: jayeshpatel
14 Replies
9. Shell Programming and Scripting
Hi all
I have a variable name as below
runbatch=FCSTworLOADfx_CYR
Now i need to search for FCST in this variable and run a program
I am doing like this but it is failing
if ; then ****RUN PROGRAM**
Please help
DJ
Please use CODE tags when displaying sample input,... (3 Replies)
Discussion started by: Hypesslearner
3 Replies
10. Shell Programming and Scripting
I wrote myself a small little shell script to clean up a file I have issues with. In particular, I am stripping down a fully qualified host/domain name to just the hostname itself. The script works, but from a performance standpoint, it's not very fast and I will be working with large data sets.
... (4 Replies)
Discussion started by: dagamier
4 Replies
LEARN ABOUT DEBIAN
graphicsmagick-config
GraphicsMagick-Config(1) General Commands Manual GraphicsMagick-Config(1)
NAME
GraphicsMagick-config - get information about the installed version of GraphicsMagick
SYNOPSIS
GraphicsMagick-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]
DESCRIPTION
GraphicsMagick-config prints the compiler and linker flags required to compile and link programs that use the GraphicsMagick Application
Programmer Interface.
EXAMPLES
To print the version of the installed distribution of GraphicsMagick, use:
GraphicsMagick-config --version
To compile a program that calls the GraphicsMagick Application Programmer Interface, use:
cc `GraphicsMagick-config --cflags --cppflags --ldflags --libs` program.c
OPTIONS
--cflags
Print the compiler flags that are needed to use the GraphicsMagick C interface. (Usually empty.)
--cppflags
Print the preprocessor flags that are needed to find the GraphicsMagick C include files and defines to ensure that the GraphicsMag-
ick data structures match between your program and the installed libraries.
--exec-prefix
Print the directory under which target specific binaries and executables are installed.
--ldflags
Print the linker flags that are needed to link with the GraphicsMagick library.
--libs Print the linker flags that are needed to link a program with libGraphicsMagick.
--version
Print the version of the GraphicsMagick distribution to standard output.
COPYRIGHT
Copyright (C) 2002 GraphicsMagick Group
Copyright (C) 2002 ImageMagick Studio
AUTHORS
Bob Friesenhahn
GraphicsMagick 4 December 2002 GraphicsMagick-Config(1)