Search Results

Search: Posts Made By: Hypesslearner
2,778
Posted By RudiC
You did NOT separate ALL quoted strings from ALL...
You did NOT separate ALL quoted strings from ALL their neighbours by inserting spaces!

---------- Post updated at 15:58 ---------- Previous update was at 15:58 ----------

Actually, you inserted...
2,778
Posted By RavinderSingh13
Hello Hypesslearner, Could you please try...
Hello Hypesslearner,

Could you please try following and let me know if this helps.

if [[ "$3"="null" || "$4"="null" ]]
then
echo "ABC" >> "$FILE"
else
echo "CDF" >> "$FILE"
fi
...
11,769
Posted By Don Cragun
Hypesslearner, I repeat: CODE tags needs to...
Hypesslearner,
I repeat:
CODE tags needs to be in the form:
code to be formatted
not:
code to be formatted

Try something like:
File_Modify {
awk -v aligntype="$1" '
BEGIN {...
11,769
Posted By Don Cragun
In the code: awk 'BEGIN {FS=OFS=","} ...
In the code:
awk 'BEGIN {FS=OFS=","}
{$1="Align"
$COMMA=" , , , , ,"
$SIT="SIT";
print $1,$3,$10,$9,$7,$6,$4,$2,$COMMA,$5,$HPR,$11,$12,$13,$14,$15,$16,$17}' EXPDATA.txt>temp.txt
You have...
11,769
Posted By Don Cragun
When given the input: ...
When given the input:
1,2,3,4,5,6,7,8,9,10,11,12
I would expect the output:
Align,3,10,9,7,6,4,2,5,11,10,11from the awk script:
awk 'BEGIN {FS=OFS=","} {print...
11,769
Posted By RavinderSingh13
Hello Hypesslearner, Please use code tags...
Hello Hypesslearner,

Please use code tags for commands and codes used in your posts as per forum rules.
You can try following for same(Not tested though).


awk 'BEGIN {FS=OFS=","}...
11,769
Posted By pravin27
Without BEGIN Block awk -F"|"...
Without BEGIN Block
awk -F"|" '$11="||||"$11"|ABC"' OFS="|" filename
11,769
Posted By Don Cragun
You could also try this: awk ' BEGIN { FS =...
You could also try this:
awk '
BEGIN { FS = OFS = "|" }
{ $11 = "||||" $11 "|ABC" }
1' file
If you are using a Solaris/SunOS system, change awk to /usr/xpg4/bin/awk, /usr/xpg6/bin/awk, or nawk.
927
Posted By MadeInGermany
Maybe you can set IFS to split the file during...
Maybe you can set IFS to split the file during reading, then you do not need cut.
For example, read FINAL.txt, echo the new lines, and redirect the whole loop to FINAL2.txt
while IFS="." read f1 f2...
933
Posted By pilnet101
Try this: awk '/Grand/{n+=$8;gsub(/ +/,"...
Try this:

awk '/Grand/{n+=$8;gsub(/ +/," ");print};END{print "TOTAL: "n+0}' File1.$$
1,055
Posted By SriniShoo
if [[ $(grep "FCST" <<<${runbatch}) ]]; then...
if [[ $(grep "FCST" <<<${runbatch}) ]]; then ***RNU PROGRAM***
1,055
Posted By protocomm
if [[ "$(echo $runbatch | grep FCST)" != "" ]];...
if [[ "$(echo $runbatch | grep FCST)" != "" ]]; then echo "find";fi
854
Posted By RudiC
Do you want the files to be merged (based on what...
Do you want the files to be merged (based on what criteria?) or just concatenated? For the latter, tryfor i in ABC_C*; do echo cat $i ${i/_C/_N} ">" ${i/_C/_T}; done
cat ABC_CYBWFX.txt...
854
Posted By rbatte1
It's a bit unclear what you want. Do you have a...
It's a bit unclear what you want. Do you have a fixed list of input files? you could try:-for identifier in WFX QTFX MAFX AVFX FWX
do
cat ABC_NYF${identifier}.txt ABC_CYF${identifier}.txt > ...
Showing results 1 to 14 of 14

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