The script was written on a RedHat linux server using vi
The script was ran on the same Linux server using directories copied from a Windows server to a NAS mounted to the Linux server.
This post was created from an iMac (lion 10.7.x) using TexEditor application ( cut and paste from linux vi saved files.
in each path below there is a .svn/entries file the hostname is extracted from this file
snip from PathList:
Last edited by Scott; 02-22-2012 at 02:22 PM..
Reason: Code tags
I'm new to unix scripting. How would I go about pulling the first 3 characters from a variable in ksh and storing in another variable? Thanks. (9 Replies)
hi all,
how do i subract variables in shell ?? am trying to space out the headers and the output generated by the shell so they all line up :
currently the output is like this :
servers : users
server1 : 10
latestServer : 50
so i thought... (3 Replies)
Hi,
I'm new to shell programming.
I have two variables a and b
a=val1
b=val2
could anyone kindly post the shell script to concatenate the values of variable a and b with an underscore(_) in between?
The final output should be val1_val2. (8 Replies)
I'm trying to set a variable to the output of a command.
This is what the comand output to the display looks like:
/>hciconndump -v TOsiu
Dump of connection(s): TOsiu
----------------------------------------------------------------------
Process: A60Tsiu Connection: TOsiu... (2 Replies)
I can't believe I can't figure this out... given this code:
CARS_DATA_LIST=`cat /tmp/file1 | awk '{print $1}' `
FMSA_DATA_LIST=`cat /tmp/file2 | awk '{print $1}' `
The value of each of the above variables is:
CARS = a b c d e f g
FMSA = a b c q r s
I want to declare a third... (8 Replies)
Hello,
I have a tricky problem:
I have a $file with a variable number of occurrences of "ORA-" (in this case two)
..........
EXP-00008: ORACLE error 3113 encountered
ORA-03113: end-of-file on communication channel
EXP-00056: ORACLE error 1403 encountered
ORA-01403: no data found... (9 Replies)
Hi,
I 'm trying to send an e-mail for every different line in the .txt
for i in {1..$variable}
do
sed -n "/$i$/p" text.txt
done
I have two problems about this.
First one is that for loop doesn't work
and the second one is that i cant get the output of sed (4 Replies)
I need to know how to concatenate variables in Debian. I am making a interactive script where it ask the user for info to add a user I pull the first letter from the first middle and last name into individual variables now i want to put them all in one variable so i can put it into useradd command ... (4 Replies)
Hi Friends ,
I want to know how to format the output for the following:
i searched in the forum and couldnt get the exact requirement.
Thanks in advance . (2 Replies)
Hi Guys,
I was scratching my head for this for half a day... finally not successful :confused:
Following is the problem
I have a variable
$ var1=123
$ var2-234
$ var3=345
and another Variable
$ i=1
Now i wanted to save these into a Variable as shown below
for i in 1 2 3
do... (5 Replies)
Discussion started by: ramprabhum
5 Replies
LEARN ABOUT DEBIAN
source-highlight-settings
SOURCE-HIGHLIGHT-SETTINGS(1) User Commands SOURCE-HIGHLIGHT-SETTINGS(1)NAME
Source-highlight-settings - utility that can be used to write a configuration file for GNU Source-highlight (and its library)
SYNOPSIS
source-highlight-settings
DESCRIPTION
Since version 3.0, GNU Source-highlight includes also the utility source-highlight-settings, which can be used to check whether
source-highlight will be able to find its language definition files, and other configuration files, and in case, to store the correct set-
tings in a configuration file, in the user home directory.
In particular, the stored configuration file will be called source-highlight.conf and will be stored in $HOME/.source-highlight/.
For the moment, this file only stores the default value for the --data-dir option.
This utility is part of GNU Source-highlight, maintained by:
Lorenzo Bettini <http://www.lorenzobettini.it>
REPORTING BUGS
Report bugs to <bug-source-highlight at gnu.org>
COPYRIGHT
Copyright (C) 1999-2009 Lorenzo Bettini <http://www.lorenzobettini.it> This program comes with ABSOLUTELY NO WARRANTY.
This is free software; you may redistribute copies of the program under the terms of the GNU General Public License. For more information
about these matters, see the file named COPYING.
SEE ALSO
The full documentation for source-highlight is maintained as a Texinfo manual. If the info and source-highlight programs are properly
installed at your site, the command
info source-highlight
should give you access to the complete manual.
Source-highlight-settings May 2009 SOURCE-HIGHLIGHT-SETTINGS(1)