Search Results

Search: Posts Made By: ocbit
5,622
Posted By Aia
By using -F'[~><]' lines like...
By using -F'[~><]' lines like <name>Connections/JDBC/Install</name> get split into tokens:

echo "<name>Connections/JDBC/Install</name>" | awk -F'[~><]' '{for(i=1;i<=NF;i++){print i ": " $i}}'...
5,622
Posted By Yoda
Replace first sub function in the code with gsub ...
Replace first sub function in the code with gsub

FNR == NR {
gsub ( /\./, "/", $1 )
5,622
Posted By Yoda
To see what is getting replaced you can use match...
To see what is getting replaced you can use match function and print, write output to another file:-
awk -F'[~><]' '
FNR == NR {
sub ( /\./, "/", $1 )
...
1,921
Posted By RavinderSingh13
Hello ocbit, I am still unsure about your...
Hello ocbit,

I am still unsure about your complete requirement. I am still assuming like you need to check file's status only either it is present or not. If yes, then why not create 2 variables...
6,359
Posted By gull04
Hi, If you have that error message, it is...
Hi,

If you have that error message, it is likely that "syntax" isn't one of the options in your version of vi.

You should be able to check it using the "set all" command from within vi.

:set...
4,492
Posted By MadeInGermany
Try PS1='\u@\h:$PWD>'That's bash. Other...
Try
PS1='\u@\h:$PWD>'That's bash.
Other shells might take
if [ -z "$USER" ]; then
export USER
USER="$LOGNAME"
if [ -z "$USER" ]; then
USER=`PATH=/bin:/usr/bin:/usr/ucb whoami`
fi
fi...
4,492
Posted By cjcox
Just source in your aliases after the su. ....
Just source in your aliases after the su.

. /path/to/your/aliases.ksh
1,353
Posted By RudiC
How that? For your limited sample, tryawk ' ...
How that?

For your limited sample, tryawk '
FNR == NR {sub (/\./, "/", $1)
T[$1] = $2
next
}
{for (t in T) if ($0 ~ t)...
Showing results 1 to 8 of 8

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