Search Results

Search: Posts Made By: insamniac
2,754
Posted By insamniac
assuming your flat file is called file.txt and...
assuming your flat file is called file.txt and output file is outfile.txt

cat file.txt | sed 's/~/ /g' | while read empNum depName
do

empName=$(Your code to get the name from your database...
3,186
Posted By insamniac
Here's a way you could do it in ksh.. not the...
Here's a way you could do it in ksh.. not the most efficient way, but worth a shot to see if it eats up your system resources as badly as your method..

#!/bin/ksh

logfile=/path/to/logfile...
1,881
Posted By insamniac
the 'head -2' pulls the top two lines of the text...
the 'head -2' pulls the top two lines of the text file, the 'tail -1l' pulls the bottom of those 2, so it's the second line of the file. Yogesh's method is cleaner and doesn't require external unix...
1,990
Posted By insamniac
looks like homework to me
looks like homework to me
1,881
Posted By insamniac
this is a sloppy answer, so it's not good if this...
this is a sloppy answer, so it's not good if this is a homework assignment, but you can do:

TEST=$(head -3 BATCH007.TXT | tail -1l | awk '{FS=","} {print $2}')
Forum: Solaris 11-18-2008
3,979
Posted By insamniac
Oh the shame. I see there's a better forum for...
Oh the shame. I see there's a better forum for this question to be placed in... Someone please move it and accept my humble apologies..
Forum: Solaris 11-18-2008
3,979
Posted By insamniac
Changing CDE FrontPanel Button Colors
OK so I've been trying to figure this out on and off for about two years on Solaris 8, and now I'm trying to do it in Solaris 10 (which seem to have identical resource structures for Dtwm.)

I've...
4,909
Posted By insamniac
Glad to hear it worked... I wasn't totally sure!
Glad to hear it worked... I wasn't totally sure!
4,608
Posted By insamniac
welp i'm useless then... can't you track...
welp

i'm useless then... can't you track down a resources file in your home directory in ~/.gnome/ or something ?
2,982
Posted By insamniac
first, try: man grep Not sure if I...
first, try: man grep

Not sure if I understand totally.. but you want to pause until your
"ps -ef" shows you that your first 'rsh' has finished, and then run
your second rsh?

using ksh that...
4,608
Posted By insamniac
what OS/window manager are you using?
what OS/window manager are you using?
4,909
Posted By insamniac
can't you just source the file like this ...
can't you just source the file like this
#!/usr/bin/ksh

. usermon.conf #reads the file into the current script


usermon.conf should contain something like this:
myvar1="whatever1"...
1,835
Posted By insamniac
dunno what shell you're using.. I use ksh and...
dunno what shell you're using.. I use ksh and would do something like-

echo "username : "
read username
echo "password :"
read pwd

if [[ ${#pwd} -lt 1 ]] # checks if the length of $pwd is...
1,652
Posted By insamniac
Dtksh + Motif newb
I have a script that creates a Form and multiple textfield, text, and label widgets in which the user inputs data, and submits it to be organized and formatted accordingly....

Some of the...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 11:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy