10 More Discussions You Might Find Interesting
1. HP-UX
Hi all,
This is my first ever posting, so please be gentle with me :)
I'm trying to write a script in HP-UX which outputs text in different colours, but although I can get the script to output different colours to the screen, I can't get it to write different colours to a file. Take the... (4 Replies)
Discussion started by: neilharvey
4 Replies
2. Shell Programming and Scripting
Hi Everyone,
Long time lurker here. I have a project of bringing every one of our data centers to a newly enforced company standard. Standard naming conventions, domain migrations, etc. So, the people who are setting the standards are providing me with a CSV file. Column 1 has the old... (23 Replies)
Discussion started by: Zaphod_B
23 Replies
3. UNIX for Dummies Questions & Answers
I need to enable set -x in my croned script as at times the script is not returning all data that it should be. This only happens intermittently and as such I would like a means of being able to check what goes wrong.
My question is how to output the debug of set -x to file? (1 Reply)
Discussion started by: rob171171
1 Replies
4. Homework & Coursework Questions
Stuck on formatting an output. I want to list 6-99 on the screen, looking something like this:
99 98 97 96 95 94 93 92 91 90
89 88 87 86 85 84 83 82 81 80
and so on down to 6.
So far I am only able to print one value per line.
This is what I have
I have defined x as integer x=99... (2 Replies)
Discussion started by: huckknows
2 Replies
5. Shell Programming and Scripting
Hi everyone. I realise this is probably a bit of a noob question, but I'm actually a C# developer working on a legacy system, and can't remember much unix.
I want to read from a pipe-delimeted file like formatted thusly:
idno|PRODUCT|Name|street town postcode|etc|etc|etc|etc... (4 Replies)
Discussion started by: Darkness Fish
4 Replies
6. UNIX for Dummies Questions & Answers
Hi!
I am a newbie to Unix. I was writing a little game program for fun when thought of an idea to allow data to be saved. I knew to take all of the Predefined variables and put them into a separate file, then including the file in the program. But I am having trouble making it so that the user... (0 Replies)
Discussion started by: signebedi
0 Replies
7. Shell Programming and Scripting
I have information in a file called HITS. This file has been populated by the user entering search criteria.
the HITS file contains information:
filname.hits: 123.33.345.66 Fri Nov 26 11.45.56.43 GMT 2006
at the moment i am just displayin the information using cat HITS.
... (3 Replies)
Discussion started by: amatuer_lee_3
3 Replies
8. Shell Programming and Scripting
Ok, lets suppose I have two files like so:
file1
John 5441223
Sandy 113446
Jill 489799
file2
Sandy Tuesday
Jill Friday
John Monday
Is it possible to match records from these two files and output them into one output file? For example, lets suppose I want to output like this:
... (5 Replies)
Discussion started by: Liguidsoul
5 Replies
9. Shell Programming and Scripting
Dear Gurus,
I have this output file:
F1BDEV13 NTIAF101 2006/09/21 14:54:51 14:55:29 1 0560-0570 LAN
F1BDEV14 NTIAF101 2006/09/21 14:55:30 14:55:49 1 0000-0000 LAN
F1FSP001 NTIAF101 2006/09/21 14:55:51 14:55:53 1 0000-0000 LAN
F1NSP001 ... (6 Replies)
Discussion started by: lweegp
6 Replies
10. UNIX for Dummies Questions & Answers
Simple script trying to increment a counter within an echo statement never gets past 1 - PLEASE HELP!
Thanks.
~~~~~~~~~~~
#!/bin/sh
stepup()
{
STEP=`expr $STEP + 1`
echo $STEP
}
#
# Initialize variables
#
STEP=0
echo "Counter Value: `stepup`"
echo "Counter Value:... (2 Replies)
Discussion started by: blaze
2 Replies