08-04-2011
Maybe I explained it wrong,
I'm trying to strip the ./ from the begining of every line
and then strip everything after sam.company.local
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi to all,
first of all,i am working on MINIX 3 OS.
I want to create a bash script file,which will create a list of files(not directories) that have been modified one specific day (i.e today) under my home directory.
thank you very much!! :) (8 Replies)
Discussion started by: kostis1904
8 Replies
2. Shell Programming and Scripting
Hi,
Is there any cleaver way to run function from the bash scrip over ssh?
For example:
#!/bin/bash
#Function 1
FN1 ()
{
ls -l
}
#Main run
ssh user@host FN1
exit 0
Yeah, I know it will not work, but I'm asking how to make it to work :)
I'm suspecting that it would be... (1 Reply)
Discussion started by: columb
1 Replies
3. Shell Programming and Scripting
Dear all,
Could you please advice as I when call function i found the following error
" refills: command not found" note that refills is function name.
following also the function and how i call it
function refills
{
echo "formatting refills and telepin" >> $log
awk -F,... (20 Replies)
Discussion started by: ahmed.gad
20 Replies
4. Shell Programming and Scripting
I have a question about bash script.
Can I create a function there that accept parameters like functions in program language? (2 Replies)
Discussion started by: programAngel
2 Replies
5. Shell Programming and Scripting
I have trouble getting this logic to work
#!/bin/bash
function assign_var(){
while
do
read -p "$2 :" $3
done
}
assign_var '$IPADDRESS' ipaddress IPADDRESS
Basicly, i want to make sure that entry is made (i can add more sophisticated checks later), but the idea is to recycle... (11 Replies)
Discussion started by: serverchief
11 Replies
6. Shell Programming and Scripting
I would like to call functions from another bash script. How can I do it? Some code More code (11 Replies)
Discussion started by: kristinu
11 Replies
7. Shell Programming and Scripting
Hi.
How can I create a history function? (By "read" command or so)
&
How can I configure a read command so that the arrow keys are not displayed so funny? (^[[A)
Thanks in advance. (4 Replies)
Discussion started by: sinnlosername
4 Replies
8. Shell Programming and Scripting
Hello Experts,
I have created one user confirmation process that will ask for user input. I have created one func for it. The issue is if i call it as normal then it works fine but if i am calling it in another script(in while loop) . It is going in infinite loop and not asking for user input. ... (8 Replies)
Discussion started by: looney
8 Replies
9. Shell Programming and Scripting
Hello,
I checked grep help field, I got the answer but seems a bit technical for me.
Could you please let me know what is this script doing?
grep -q -F 'addprestart.sh' /usr/bin/enigma2_pre_start.sh || \
echo '/bin/sh /etc/enigma2/addprestart.sh > \
/dev/null 2>&1 & sleep .5 &' >>... (6 Replies)
Discussion started by: baris35
6 Replies
10. Shell Programming and Scripting
I'm able to read & print an array in varaible called "filelist"
I need to pass this array variable to a function called verify() and then read and loop through the passed array inside the function.
Unfortunately it does not print the entire array from inside the funstion's loop.
#/bin/ksh... (5 Replies)
Discussion started by: mohtashims
5 Replies
strip(1) General Commands Manual strip(1)
NAME
strip - Removes symbols and relocation bits
SYNOPSIS
strip [-V] file...
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
strip: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
[SVID 3] Displays the version number of the strip command.
DESCRIPTION
The strip command removes the symbol table and any strippable subsections of the section, including compact relocation information ordinar-
ily present in executable files. This is useful to save space after a program has been debugged.
The effect of strip is the same as use of the -s option to cc, c89, or ld.
Note that the strip command will not strip executables with unresolved relocation entries. It also does not handle archive files.
EXIT STATUS
Success. An error occurred.
ENVIRONMENT VARIABLES
The following environment variables affect the behavior of strip: Provides a default value for the locale category variables that are not
set or null. If set, overrides the values of all other locale variables. Determines the locale for the interpretation of byte sequences
as characters (single-byte or multibyte) in input parameters and files. Determines the locale used to affect the format and contents of
diagnostic messages displayed by the command. Determines the location of message catalogs for processing of LC_MESSAGES. Determines the
directory where a temporary file will be created (if needed). If not set, the current working directory is used.
SEE ALSO
Commands: ar(1), cc(1), c89(1), ld(1), mcs(1)
Standards: standards(5)
strip(1)