Search Results

Search: Posts Made By: ramsavi
Forum: Red Hat 08-08-2013
2,088
Posted By Scott
You had "Table" for a variable, instead of...
You had "Table" for a variable, instead of "table":

#!/bin/bash -xv
IB_RTE_CONN_STR=scott/tiger
hdr=1
while IFS=',' read -r f1 f2 f3 f4
do if [ "$hdr" ]
then # Skip the 1st...
1,230
Posted By Scrutinizer
Or maybe try: sed 's/....-..-.. ..:..:..//g'...
Or maybe try:
sed 's/....-..-.. ..:..:..//g' file
1,033
Posted By Don Cragun
Reading the commands is easy. Based on the...
Reading the commands is easy. Based on the instructions you've given, the 1st field in each line is useless; the 2nd field on each line (after the header) specifies the name of a source file and the...
Forum: Red Hat 05-19-2013
2,023
Posted By Don Cragun
The standards say that the type time_t is an...
The standards say that the type time_t is an integral type. They don't specify whether the type is signed or unsigned. On systems with a signed 64-bit time_t, any time from the big bang to the...
2,130
Posted By Yoda
Then call getline 4 times: awk -F'[<>]'...
Then call getline 4 times:
awk -F'[<>]' '/Source id="S1"/{getline;getline;getline;getline;sub(/[a-z_]*%/,"%",$3);sub(/%\..*/,"%",$3);print $3}' xmlfile

---------- Post updated at 15:40 ----------...
10,020
Posted By Yoda
Copy this code as it is and try to run: ...
Copy this code as it is and try to run:

#!/bin/bash

val_1=$( sqlplus -s rte/rted2@rel76d2 << EOF
set heading off
SELECT MAX(STAT_ID) FROM CVT_STATS;
exit
EOF
)
echo "val_1: $val_1"
...
Forum: Red Hat 03-01-2013
1,799
Posted By Vikram_Tanwar12
Oh man seems to be lot of changes are required in...
Oh man seems to be lot of changes are required in your file.


If you want to replace the inside record with double quotes. Then try this.

[vikram@lg105m 05:50 vikram]$ cat file3.txt...
Showing results 1 to 7 of 7

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