Search Results

Search: Posts Made By: jasony001
2,991
Posted By jasony001
Executing script's directory
I have a shell script /home/user1/bin/sh1, how can I print out the directory of this file inside the script.

Say I am in /home/user1/, then I run
/home/user1/bin/sh1

I need it to print out...
1,890
Posted By jasony001
Re: String manipulation problem
RESULT_STR=`awk -F":" '{printf $2 " | "}' $LOG_FILE`
Showing results 1 to 2 of 2

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