Search Results

Search: Posts Made By: Pranav Bhasker
2,210
Posted By PikK45
Now it would try to attempt to cat...
Now it would try to attempt to cat dir/newFile.txt as well..

I guess this would be solved if you are having that newFile.txt in some other directory :)
1,991
Posted By pamu
As per your given input your final output is...
As per your given input your final output is highlighted above.
If you want v in the final output then use sth like this..

And instead of using split just us FS for the same :)
$echo...
1,991
Posted By Jotne
version=`echo $FOLDER | awk...
version=`echo $FOLDER | awk '{split($0,a,"_v");print a[2]}'`
Here you also have removed the ; at the end compare to post above.

Try this and see if it works
version=$(echo $FOLDER | awk...
1,991
Posted By Franklin52
version = $(echo $FOLDER | awk...
version = $(echo $FOLDER | awk '{split($0,a,"_v");print a[2]}');
Remove the spaces around the "=" sign:
version=$(echo $FOLDER | awk '{split($0,a,"_v");print a[2]}');
Showing results 1 to 4 of 4

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