Search Results

Search: Posts Made By: gc_sw
2,257
Posted By gc_sw
Delete Some Lines from File
Hi,

I have a txt document having a format like this:

DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:34
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:32
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:30
......
Forum: Ubuntu 12-10-2015
1,888
Posted By gc_sw
enabled "Ubuntu Desktop" during installation and...
enabled "Ubuntu Desktop" during installation and my server is up
Forum: Ubuntu 12-09-2015
1,888
Posted By gc_sw
Unable to boot Ubuntu server 15.10
Hi;

I had Windows Server 2003 and performed a fresh Ubuntu Server 15 installation.
After installation, Ubuntu server not booting

I guess there is boot problem conflicting with my old Windows...
Forum: Solaris 11-26-2015
7,845
Posted By gc_sw
Disable or remove SNMPv1/2c authentication and SNMP version-3
Hi;

How can I disable or remove SNMPv1/2c authentication. I would like to use SNMP version 3 authentication.

bash-3.00# uname -a
SunOS SOL9229 5.10 Generic_142910-17 i86pc i386 i86pc...
1,402
Posted By gc_sw
Cronjob is NOT working
Hi;

Here is the output from crontab -l:

2,7,12,17,22,27,32,37,42,47,52,57 * * * * /var/tmp/gcsw/jmap_samples/jmap_script.sh > /var/tmp/gcsw/jmap_samples/histo_`date '+%Y%m%d%H%M'`.txtWhen I...
1,400
Posted By gc_sw
thank you Don. it is working now..
thank you Don.
it is working now..
1,400
Posted By gc_sw
sorry Don; my all values are \t seperated and...
sorry Don;
my all values are \t seperated and my code was:

awk 'BEGIN{OFS=FS="\t"}$6==1{$6="RED"}{print}' /var/tmp/db.txt > /var/tmp/db_new.txt

and it worked. but I just wonder how to add else...
1,400
Posted By gc_sw
thanks SriniShoo but: awk 'BEGIN{a[1] =...
thanks SriniShoo but:

awk 'BEGIN{a[1] = "RED"; a[2] = "BLUE"; a[3] = "YELLOW"; a[5] = "ORANGE"} NR>1 {$6 = a[$6]}1' file
awk: syntax error near line 1
awk: bailing out near line 1

how to add...
1,400
Posted By gc_sw
I had a table like: COL1 COL2 COL3 COL4 COL5...
I had a table like:

COL1 COL2 COL3 COL4 COL5 COL6 COL7
val1 val2 val3 val4 val5 1 val7
val1 val2 val3 val4 val5 3 val7
val1 val2 val3 val4 val5 5 val7
val1 val2 val3 val4 val5 2 val7
...
...
1,400
Posted By gc_sw
Text Conversion in Column
Hi all;

We have a table:

COL1 COL2 COL3 COL4 COL5 COL6 COL7
val1 val2 val3 val4 val5 1 val7
val1 val2 val3 val4 val5 3 val7
val1 val2 val3 val4 val5 5 val7
val1 val2 val3 val4 val5 2 val7...
6,653
Posted By gc_sw
i have created a file (/var/tmp/gcsw/script.sh)...
i have created a file (/var/tmp/gcsw/script.sh) and write:printf '%s -> %s\n' "$(date '+%Y-%m-%d %H:%M')" "$(/opt/gcsw/gwstatus -ne | fgrep 'State:2' | wc)" >> /var/tmp/gcsw/status.txt

and created...
6,653
Posted By gc_sw
a) there is no entry related to cron in syslog ...
a) there is no entry related to cron in syslog
b) $PATH is defined as...
6,653
Posted By gc_sw
there is not any error message but file is not...
there is not any error message but file is not being updated :( i didnot assign anything with PATH how can i solve it?
6,653
Posted By gc_sw
Crontab is not working in printf
hi, i have a script as:

printf '%s -> %s\n' "$(date '+%Y-%m-%d %H:%M')" "$(/opt/gcsw/status -ne | fgrep 'State:2' | wc)"

which gives output as: 2013-01-18 13:00 -> 80 480 6529 and it is working...
5,249
Posted By gc_sw
awk - append date to output of a command
Hi all;

I am running a script:/var/tmp/gcsw -ne | grep "State:2" | wc

that gives me output like:80 480 6529

but i need this output as:2013-01-18 13:00 -> 80 480 6529
3,023
Posted By gc_sw
Windows Power Shell - rename files and move
hi people;

i want to make a file/folder operation as follows.

- i have 41 folders in Windows and each of them have same-named files (~200 files each) inside.
- i want to stack these files...
1,460
Posted By gc_sw
i think it's like conversion from an .exe to...
i think it's like conversion from an .exe to source code. it's a strange thing.
2,543
Posted By gc_sw
awk NF-1 means show just 1st(or more) fields....
awk NF-1 means
show just 1st(or more) fields. if the line has 2 fields (2 columns) it will show just NF-1=2-1=1 field.

so, NF-1 will show only lines having 2 or more fields
911
Posted By gc_sw
this is such a strange piping! it is irrelevant....
this is such a strange piping! it is irrelevant. forget about it.
3,528
Posted By gc_sw
i am using MOshell interface being started from a...
i am using MOshell interface being started from a Unix Terminal.

run : a moshell command to execute .mos file.
l : at moshell session, type "l" and then write unix commands. it is something like...
3,528
Posted By gc_sw
ok. this is my code: 1> l nawk...
ok. this is my code:

1> l nawk 'NR==FNR{a=a?a"get . "$0";":"get . "$0";";next;}{print "l ./moshell "$0" "c"lt all;l+;" a "l-;l cat $logfile >>
/home/gc_sw/log.txt;l rm $logfile"c}' c="'"...
3,528
Posted By gc_sw
programme is ok but not working in script
hi buddies;

i have a very strange problem. i made a script composed of just 5 line. it is containing awk and nawk codes and it is working perfectly when it is applied one-by-one (copy & paste). ...
2,299
Posted By gc_sw
bccmd -d hci0 coldreset & bccmd -d hci1 coldreset...
bccmd -d hci0 coldreset & bccmd -d hci1 coldreset &
wait
1,157
Posted By gc_sw
what is the function of this code? explain...
what is the function of this code? explain background of this script? where and on which file did you apply this?
1,863
Posted By gc_sw
what is your algorithm of getting the result: ...
what is your algorithm of getting the result:

revision 1.1 savita ./power/analysis/pow_rtl/renes_setup.g
revision 1.1 sandeepk ./power/cpf/RENESAS/NET06_2/run_net06_2.g

please clearify the way...
Showing results 1 to 25 of 155

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