[[ ]] brackets are an extended version with a more "C-like" syntax, supporting all the usual operators as well as things like && for and instead of -a, || instead of -o.
It can also do glob-like string matching:
Using these features means the code may not work if you try to port your code to a simpler shell.
Hi
Input text is
some message some message some message
Expected output is
main value1 value2 value3
Any idea how to above values in square brackets using shell scripting?
many thanks. (3 Replies)
So, I have no formal higher education in programming at all and am self taught. I am now wondering what would be considered best practices? Like should I hard code a variable, then compare it to what I want to know or achieve, or should I just put the commands with in the brackets?
Example, a... (5 Replies)
Hi,
Am trying to split a string with bracket in ksh but it is not splitting it correctly.
split("Hello, Name(1), Name(2)", main,",");
How do i split correctly? (3 Replies)
Related to :
thread : 34769-removing-duplicate-lines-file.html
i want to extract the words in ()
eg: string1="bla bla (aaa) aha hai (aa)"
after processing output i need is : aaa aa (2 Replies)
Hi
I have to remove in a file in first column whatever is written in brackets with brackets
so one file
hgfd 123
gfhdj 483
jdgfdg 34738
the output shuld be
hgfd 123
gfhdj 483
jdgfdg 34738 (9 Replies)
Is this possible? The below code not working for me.
dir=mydir
if ; then
echo "found /home/$mydir "
else
echo "Not found /home/$mydir"
fi
---------- Post updated at 05:28 AM ---------- Previous update was at 05:25 AM ----------
Its working for me now (1 Reply)
Hello !
I'm using a lot the command zf% with the cursor on the first bracket of a function for example, to fold it.
Ex : I put my cursor on the first bracket
myfunction(){
# body
}
I type zf%
It become :
+-- 9 lines : myfunction()... (2 Replies)
hello Friend,
In hostgroup file, i have define lots of hostgroups. I need to remove few of them without manually editing file. Need script or syntax.
I want to search particular on hostgroup_members and delete hostgoup defination of it.
for example.
define hostgroup{
hostgroup_name... (8 Replies)
I have no idea how to write ksh script, but i'm really in need of help with this. I using fedora 30 and in attempt of runnig attached script i getting those errors, i solved first error by removing excess bracket, but i do not know what should i do with other. Pls sorry for trash post. (8 Replies)
Discussion started by: NullPtr
8 Replies
LEARN ABOUT SUSE
lxterminal
LXTERMINAL(1) http://LXDE.org LXTERMINAL(1)NAME
lxterminal - a lightweight terminal emulator based on GTK+ for the LXDE desktop.
SYNOPSIS
lxterminal [options...]
DESCRIPTION
This manual page documents briefly the lxterminal command.
lxterminal is a program that provides a terminal emulator for the desktop, usually for LXDE. It is a lightweight GTK+ 2.x based desktop
panel.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-e STRING --command=STRING
Execute the argument to this option inside the terminal.
-t STRING --title=STRING
Set the terminal's title.
--working-directory=DIRECTORY
Set the terminal's working directory.
--geometry=CHARACTERSxLINES
Set the terminal's size in characters and lines.
-l --loginshell
Executes login shell.
AUTHOR
This manual page was written by paulliu grandpaul@gmail.com for the Debian system (but may be used by others). Permission is granted to
copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
AUTHOR
Ying-Chun Liu
Author.
COPYRIGHT
Copyright (C) 2008 paulliu
http://LXDE.org Jun 28, 2008 LXTERMINAL(1)