9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The machine is using bash:
==================
bash -version
GNU bash, version 3.2.51(1)-release (i386-pc-solaris2.10)
Copyright (C) 2007 Free Software Foundation, Inc.
=========================
I have the following xml file. am trying to get a whole paragraph if it meets certain criteria.... (9 Replies)
Discussion started by: gilgamesh
9 Replies
2. Shell Programming and Scripting
Any idea why this isn't working?
YESTERF=`TZ=aaa24 date +%b"-"%d | sed 's/-0/--/'`
filelist2=$(find /export/home/gen/cks/traces \( -name \*YESTERF\* -name \*DNA\* \) -print | tr '\n' ' ')
print "Date/Time,Location,Shelf,IP,Reason,Log Filename" >> $OUTPUT
nawk -F':' '
$2 ~... (2 Replies)
Discussion started by: ther2000
2 Replies
3. Shell Programming and Scripting
Hi all,
I'm trying to FTP what looks like a simple .txt file from my Windows XP desktop to my UNIX server. I've tried using several programs to do this including UltraEdit and FTP Commander. I have tried sending it ascii, binary and even let the program decide. But every time it arrives in UNIX... (4 Replies)
Discussion started by: Korn0474
4 Replies
4. Shell Programming and Scripting
Dear All,
I am trying to run some commands and I am getting question mark in filename as output files.
Which is not a literal question mark however it is not standard output format for UNIX and it can not print it.
The output files are extended with ?
For example,... (2 Replies)
Discussion started by: hsmart
2 Replies
5. Shell Programming and Scripting
Hello to all
can any one help me out with a nawk script.
Actually i am having a shell script which uses nawk pattern searching
and it is not parsing the file properly.
I have been debugging it since long time, but nt able 2 find the root cause..
If any one can help me out with this one .. (3 Replies)
Discussion started by: dheeraj19584
3 Replies
6. Shell Programming and Scripting
I am trying to write the following c code in nawk:
while ((ch = getc (fp)) != EOF)
{
total_bytes++;
checksum = (checksum >> 1) + ((checksum & 1) << 15);
checksum += ch;
checksum &= 0xffff; /* Keep it within bounds. */
}
I appreciate your help (10 Replies)
Discussion started by: DeltaX
10 Replies
7. Shell Programming and Scripting
Hello everybody !!
I just started messing around with NAWK/AWK and I find it very interesting. I was trying to have script that prints only the the different lines (lines that are identical and adjacent, some that are identical and not adjacent, and some that are just different)
I tried... (6 Replies)
Discussion started by: DeltaX
6 Replies
8. UNIX for Dummies Questions & Answers
I have a script(ex.sh) with one line in it, running in bash shell.
ls -l > /usr/ngasi/contexts/tdevoe/private/ex.txt
when I run it , it creates the file with a trailing question mark
-rwx------ 1 tdevoe webapp 59 Jun 7 06:42 ex.sh
-rw------- 1 tdevoe webapp 3761 Jun ... (3 Replies)
Discussion started by: devoetfd
3 Replies
9. UNIX for Dummies Questions & Answers
hiyas
I am trying to get back to the root directory: I went into MAIL directory and now I can't get back to the root directory. What are the commands...
I have '?' coming up and I cannot proceed with this, HELP
Cheers (1 Reply)
Discussion started by: etravels
1 Replies