02-24-2012
What doesn't work for you?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have to store the files in a folder and assign a variable to the the files. (0 Replies)
Discussion started by: dineshr85
0 Replies
2. UNIX for Advanced & Expert Users
File 1
<html>ta da....unique file name I want to give file=>343...</html>
<html>da ta 234 </html>
<html>pa da 542 </html>
and so on...
File 2
343
234
542
and so on, each line in File 1 one also corresponds with each line in File 2
I have tried several grep, sed, while .. read, do,... (4 Replies)
Discussion started by: web_developer
4 Replies
3. Shell Programming and Scripting
Hi,
I need to parse a simple text file like below and store the word that starts with BR* to a variable say $BRno. I need to do this in sh script.
NOTE: the length of the numbers following BR is in constant. And there is only 1 BRXXX in a file at a given time.
.txt file:
BR276828... (1 Reply)
Discussion started by: script2010
1 Replies
4. Shell Programming and Scripting
Hi,
I have a config file that has blank, commented lines. I need to escape commented lines, blank lines, parse the remaining lines and store them in variables or array.
the config file contains the following lines.
# config file
# Define Oracle User
ORA_USER=abcde
ORA_PASS=xyzabc... (8 Replies)
Discussion started by: Lakshmi Chowdam
8 Replies
5. Shell Programming and Scripting
Hello, I am quite new in shell scripting and I would like to write a little scritp to run a program on some parameters files.
all my parameters files are in the same directory, so pick them up with
ls *.para >>dirafter that I have a dir file like that:
param1.para
param2.para
etc...
I... (2 Replies)
Discussion started by: shadok
2 Replies
6. Shell Programming and Scripting
1)In a particualr path i have a set of inputfiles like
path:/defaultmis/MonthlyLoads/INFA_EXPORT_022013/map*
example:
1)map_de
2)map_cod
3)map_feg
........and so on
in above path there wil be nearly 15 to 20 files starting with map and in other path i have another file input file... (4 Replies)
Discussion started by: katakamvivek
4 Replies
7. Shell Programming and Scripting
hi,
i have a variable, in which i am storing the file names that are present in the current directory.
$ls -1
s1.txt
s2.txt
s3.txt
$FILES=`ls -ltr | grep "^-" | awk '{print $NF}'`
$echo $FILES
s1.txt
s2.txt
s3.txt
i want to store the files names in a single line in the variable... (7 Replies)
Discussion started by: Little
7 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
9. Shell Programming and Scripting
Hi,
I need a help on my requirement that
eg: NEED="TEST=Name WORK=Ps DEL=let"
Here the definition can be n number, could anybody have an idea to get the output as,
TEST=Name
WORK=Ps
DEL=let
..
..
till the 'n' definitions listed.
Any suggestions please.....
Regards,
ricky (6 Replies)
Discussion started by: ricky-row
6 Replies
10. Shell Programming and Scripting
Hi All,
I am writing a script in which I need to gather 2 numbers for 'total' and 'successful'. The goal is to compare the two numbers and if they are not equal, rerun the task until all are successful. I'm thinking the best way will be with awk or sed, but I really don't know where to begin... (8 Replies)
Discussion started by: hburnswell
8 Replies
LEARN ABOUT REDHAT
perlbeos
PERLBEOS(1) Perl Programmers Reference Guide PERLBEOS(1)
NAME
README.beos - Perl version 5 on BeOS
DESCRIPTION
Notes for building Perl under BeOS.
General Issues with Perl on BeOS
To compile perl under BeOS R4 x86:
./Configure -d
and hit ^C when it asks you if you want to make changes to config.sh; edit config.sh and do the following: change d_socket='define' to
='undef'; remove SDBM, Errno, and Socket from dynamic_ext= and nonxs_ext=; add '#define bool short' to x2p/a2p.h;
../Configure -S; make; make install
cd ~/config/lib; ln -s 5.00502/BeOS-BePC/CORE/libperl.so .
(substitute 5.00502 with the appropriate filename)
BeOS Release-specific Notes
R4 x86
Dynamic loading finally works! Yay! This means you can compile your own modules into perl. However, Sockets and Errno still don't work.
(Hopefully, sockets will at least work by R5, if not sooner.)
R4 PPC
I have not tested this. I rather severely doubt that dynamic loading will work. (My BeBox is in pieces right now, following a nasty
disk crash.) You may have to disable dynamic loading to get the thing to compile at all. (use `./Configure` without -d, and say 'no' to
'Build a shared libperl.so'.)
Contact Information
If you have comments, problem reports, or even patches or bugfixes (gasp!) please email me.
28 Jan 1999 Tom Spindler dogcow@isi.net
Update 2002-05-30
The following tests fail on 5.8.0 Perl in BeOS Personal 5.03:
t/op/lfs............................FAILED at test 17
t/op/magic..........................FAILED at test 24
ext/Fcntl/t/syslfs..................FAILED at test 17
ext/File/Glob/t/basic...............FAILED at test 3
ext/POSIX/t/sigaction...............FAILED at test 13
ext/POSIX/t/waitpid.................FAILED at test 1
The reasons for the failures are as follows:
o The t/op/lfs and ext/Fcntl/t/syslfs failures indicate that the LFS (large file support, files larger than 2 gigabytes) doesn't work
from Perl (BeFS itself is well capable of supporting large files). What fails is that trying to position the file pointer past 2 giga-
bytes doesn't work right, the position gets truncated to its lower 32 bits.
o The op/magic failures look like something funny going on with $0 and $^X that I can't now figure out: none of the generated pathnames
are wrong as such, they just seem to accumulate "./" prefixes and infixes in ways that define logic.
o The Glob/t/basic indicates a bug in the getpw*() functions: they do not always return the correct user db entries.
o The sigaction #13 means that signal mask doesn't get properly restored if sigaction returns early.
o The waitpid failure means that after there are no more child processes, waitpid is supposed to start returning -1 (and set errno to
ECHILD). In BeOS, it doesn't seem to.
Disclaimer: I just installed BeOS Personal Edition 5.0 and the Developer Tools, that is the whole extent of my BeOS expertise, so please
don't ask me for further help in BeOS Perl problems.
jhi@iki.fi
perl v5.8.0 2003-02-18 PERLBEOS(1)