Search Results

Search: Posts Made By: chandana.hs
1,645
Posted By wisecracker
A convoluted longhand method, OSX 10.12.3, using...
A convoluted longhand method, OSX 10.12.3, using dash in default terminal.
#!/usr/local/bin/dash
echo...
1,645
Posted By RudiC
This might work in awk: awk '{gsub (/\\n/, RS);...
This might work in awk:
awk '{gsub (/\\n/, RS); gsub (/\([^)]*\)|\047/, _)} 1' file
1,645
Posted By RudiC
Try SQ="'" sed -e "s/$SQ//g" -e 's/\\n/\n/g;...
Try
SQ="'"
sed -e "s/$SQ//g" -e 's/\\n/\n/g; s/([^)]*)//g ' file
sysserver
server2
fmserver
cmserver
intgserver
itsmserver
sysserver
server2
fmserver
cmserver
intgserver
itsmserver
1,765
Posted By gwillie
put the first command on a new line, and last...
put the first command on a new line, and last brace to i think
1,765
Posted By cero
There is a space missing after the opening curly...
There is a space missing after the opening curly brace and I'd put the output into quotes:
[ "`locate *asdfghjcluster_info*`" == "" ] && { echo "- ERROR : required cluster_info NIPE file used for...
1,765
Posted By Don Cragun
You haven't said what OS and shell you're using,...
You haven't said what OS and shell you're using, so you should also be aware that the way echo behaves when its 1st argument starts with a minus sign (as in your code) or has any argument that...
1,765
Posted By MadeInGermany
It wants a space (or a newline) between { and...
It wants a space (or a newline) between { and echo.
Further a leading - can mean an option to the echo command, and the shell evaluates the text and might stumble on a ..
The following fixes it: ...
1,814
Posted By RavinderSingh13
Hello chandana, Welcome to forums. If you...
Hello chandana,

Welcome to forums. If you want to add a variable's value permanently then you can add it in your .profile and then it will work for new sessions also.
Let me give you an example...
Showing results 1 to 8 of 8

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