Search Results

Search: Posts Made By: odashe318
4,598
Posted By odashe318
Use full path
It's very wierd.
Can you try

echo 00000 | /usr/bin/egrep ....

just to avoid path suspisions?
:confused:
6,372
Posted By odashe318
ksh startup
I did not understand what you meant by "I cannot use a .shell file ". But if I understand your problem consider this:

The man says:
"The shell first reads commands from the /etc/profile file, and...
5,222
Posted By odashe318
Use the df command
The following will print all directories where file systems are mounted:
df | awk '{print $7}'

If you run ls command on this you will get the content of all directories:
ls `df | awk '{print...
2,454
Posted By odashe318
Another approach
You can put the following before your awk command:
sed -e 's/Jan/01/' -e 's/Feb/02/' ... -e's/Dec/12/'
2,055
Posted By odashe318
Script is subtle
Keep in mind that the script command copies everything sent to the terminal to a file. If you are using a program that uses its own control of the cursor, like vi, the file created by script will...
7,808
Posted By odashe318
another approach to your problem
I think your script may drop the last record.
Add to your script

if [[ $record != "" ]] #check if records have been read
then
print $record
fi
8,237
Posted By odashe318
Sorry, should be f2| wc >$lpt or just ...
Sorry, should be
f2| wc >$lpt

or just

f2 | wc

:(
8,237
Posted By odashe318
Global variable becomes local
I have encountered a very weird behavior of a global variable in Korn Shell in AIX:
A function f1 in my script pipes the output of the function f2 to a program.
A variable defined as global using...
Showing results 1 to 8 of 8

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