08-04-2008
hi era
i'm sorry it was my mistake i did it from a directory which i don't have a grant
to.
however now i did it from other directory
and this is what it worte
sed: can't read file: No such file or directory
can someone tell what is the problem ?
thanks you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to develop a script to join multiple three lines in a log file into one line for processing with awk and grep. I looked at tr with no success. The first line contains the date time information. The second line contains the error line. The third line is a blank line.
Thanks,
Mike (3 Replies)
Discussion started by: bubba112557
3 Replies
2. Shell Programming and Scripting
Hi guys,
I've got a log file which has entries that look like this:
-------------------------------------------------------------------------------
06/08/04 07:57:57
AMQ9002: Channel program started.
EXPLANATION:
Channel program 'INSCCPQ1.HSMTSPQ1' started.
ACTION:
None. ... (3 Replies)
Discussion started by: m223464
3 Replies
3. Shell Programming and Scripting
I created a batch file (./mybatch) that need to run few programs
at a sequnece but i need a command like the DOS call command in order
to return to the main batch file to proceed the sequence
example:
cd /dir1/path/dir2
invoke program1
cd /dir3/path2/ <--- i want to return here (2 Replies)
Discussion started by: eynkesef
2 Replies
4. Shell Programming and Scripting
Hello all...
I'd like to create a variable from an array element from two arrays. In my search for answers I found this code for bash that joins two arrays and then started to work with it. I had got to work once and then foolishly without saving the code, I started to edit it for ksh and... (4 Replies)
Discussion started by: carlos25
4 Replies
5. Shell Programming and Scripting
Hi,
I want to add \n as a EOF at the end of file if it does't exist in a single command. How to do this?
when I use command
echo "1\n" > a.txt
and
od -c a.txt
0000000 1 \n \n
0000003
How does it differentiate \n and eof in this case?
Regards,
Venkat (1 Reply)
Discussion started by: svenkatareddy
1 Replies
6. Shell Programming and Scripting
I really need help on this problem.
The story:
My VAR1 and VAR2 works fine and able to get the value. I want to do as "if VAR1 or VAR2 is bigger than max_loadavg then the code will run...then if VAR1 or VAR2 is lesser than min_loadavg then the other code will run...
The problem:
The... (8 Replies)
Discussion started by: hezry79
8 Replies
7. Shell Programming and Scripting
Hi ,
I have below file with 13 columns. I need 2-13 columns seperated by comma and I want to append each row with a string "INSERT INTO xxx" in the begining as 1st column and then a variable "$node" and then $2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13 and at the end another string " ; COMMIT;"
... (4 Replies)
Discussion started by: Vaddadi
4 Replies
8. Shell Programming and Scripting
I’m writing a bash shell script and I want to join lines together where two variables on each line are the same ie.
12345variablestuff43212morevariablestuff
12345variablestuff43212morevariablestuff
34657variablestuff78945morevariablestuff
34657variablestuff78945morevariablestuff... (12 Replies)
Discussion started by: Cultcha
12 Replies
9. Shell Programming and Scripting
I'm looking for a way to join lines in a file; e.,g consider the following
R|This is line 1
R|This is
line 2
R|This is line 3
R|This is line 4
R|This is
line 5
what i want to end up with is
R|This is line 1
R|This is line 2
R|This is line 3
R|This is line 4
R|This is line 5
so... (15 Replies)
Discussion started by: Storms
15 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I'm having some trouble joining these two files for some reason. Here is what they look like:
head *
I'm using:
join -a 1 -1 2 -2 1 f1 f2 -t, > joinfile.out
but unfortunately nothing is happening. I did notice that I was having trouble sorting f1 and I'm not sure why using:... (6 Replies)
Discussion started by: verse123
6 Replies
LEARN ABOUT CENTOS
create_makefile
CREATE_MAKEFILE [FIXME: manual] CREATE_MAKEFILE
NAME
create_makefile - Creates Makefile.in and Makefile from a Makefile.am
SYNOPSIS
create_makefile [relativepath/Makefile] [relativepath]
DESCRIPTION
create_makefile creates the Makefile.in and Makefile in a subdirectory containing a Makefile.am. This script saves time compared to
re-running configure completely
Note that you must supply the path to the desired MakefileMakefile.am (though the final /Makefile may be omitted).
This script may be run from the toplevel directory (the one containing configure) or from one of it's subdirectories.
If the source directory is different from the build directory (see the environment variables below), it will be assumed that the
Makefile.am and Makefile.in belong beneath the source directory and that the Makefile belongs beneath the build directory.
This utility is part of the KDE Software Development Kit.
ENVIRONMENT
One of the following variables (but not both) should be set if the source directory is different from the build directory. If the build
directory is simply a subdirectory of the source directory, the simpler variable OBJ_SUBDIR should be used.
OBJ_SUBJDIR
Indicates that the build directory is in the given subdirectory of the source directory. For instance, if the source directory is
kdesdk and the build directory is kdesdk/obj-i386-linux, then OBJ_SUBDIR should be set to obj-i386-linux.
OBJ_REPLACEMENT
A sed expression that is used to transform the source directory into the build directory. For instance, if the source directory is
~/src/kdesdk and the build directory is ~/src/kdesdk-obj, then OBJ_REPLACEMENT should be set to s#kdesdk#kdesdk-obj#.
SEE ALSO
create_makefiles(1)
AUTHORS
create_makefile was written by David Faure<faure@kde.org> and others. This manual page was prepared by Ben Burton<bab@debian.org> for the
Debian GNU/Linux system (but may be used by others).
[FIXME: source] March 8, 2003 CREATE_MAKEFILE