10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
In a file old.txt containing (for example) a series..
#limerick There was a young lady from Nantucket..
\images\Blank.jpg
:end
#joke A horse walked into a bar...
\images\Blank.jpg
end
I would like to achieve new.txt containing
#limerick There was a young lady from Nantucket..... (5 Replies)
Discussion started by: Nigel_R
5 Replies
2. UNIX for Dummies Questions & Answers
Hi there
I have to enhance my current file looping to ensure the oldest file being processed first.
current command:
for FILENAME in `find $MY_DIRECTORY -follow -type f`
I manage to get command for order by date modified descending, just can't get the ascending order. Please help
for... (3 Replies)
Discussion started by: elsie512
3 Replies
3. HP-UX
Hi all
can i use unix variable holds the data returned by oracle in a shell script?
x=sqlplus -s u/p@h <<! >>fg.log
whenever sqlerr exit 1
select count(*) from schema.mat_view;
exit
!
echo $x
Will the $x return the value of count(*)?
thanks
megh (1 Reply)
Discussion started by: megh
1 Replies
4. Shell Programming and Scripting
Hi Pals
I am using this command in my script to find out warnings using fgrep where $log is the log file name, $date is the date to be searching and warnings.list contains list of matching words.
grep "WARNING" $log|grep "$date"|fgrep -vf warnings.list
I want to perform another action... (1 Reply)
Discussion started by: johnl
1 Replies
5. HP-UX
Hi, there,
I want to excute the remote command shell via "remsh", are there any simple or best way to get the result of remote shell from local ? thanks. (2 Replies)
Discussion started by: Frank2004
2 Replies
6. HP-UX
The rdist command script is called in the program to synchronize the updated files, I wonder whether the rdist returned can be fetched or not from the program? (0 Replies)
Discussion started by: Frank2004
0 Replies
7. UNIX for Dummies Questions & Answers
When I enter the command below grep appears to be returning a file it shouldn't.
find . -name "*.*" -exec grep "testing" {} /dev/null \;
:tps3Mailfile
./SSI.ksh: # create TECHOUT dummy for test for testing purposes
./ftprimi1.ksh:# before running job in prod... change FTP to go to rimi... (3 Replies)
Discussion started by: dfb500
3 Replies
8. Shell Programming and Scripting
Hi all, below is my PERL script
$ids = $dbh->prepare ("select * from tableA");
$ids->execute();
$names = $ids->fetchall_arrayref();
print " Total valid ids is $#names \n"; Table only has 1 column, approx 400 rows
the value of $#names is -1. Would anyone point out what could have caused the... (1 Reply)
Discussion started by: new2ss
1 Replies
9. Shell Programming and Scripting
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
10. UNIX for Advanced & Expert Users
Hi ppl,
We are using Sun OS and recently, encountered this strange problem.
When issuing the "w" or "who" command, the system produce no listing. See screen shot below.
-----------------------
$ w
2:56pm up 2 day(s), 21:10, 0 users, load average: 1.03, 0.75, 0.69
User tty ... (6 Replies)
Discussion started by: sinyem
6 Replies