Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: sagar_1986
2,830
Posted By sagar_1986
Dear Scrutinizer and MadeInGermany , ...
Dear Scrutinizer and MadeInGermany ,
(https://www.unix.com/member_modal.php?u=302116191&modal=1)
both solutions are working fine for thank you so much.





Thanks rbatte1,

I have...
2,830
Posted By sagar_1986
Dear rbatte1, ...
Dear rbatte1,
(https://www.unix.com/member_modal.php?u=302025710&modal=1)




Dear RudiC,

As per your suggestion, i have tried the solution on sample file and output is like this

grep...
2,830
Posted By sagar_1986
awk '/start/{flag=1} flag; /end/{flag=0}'...
awk '/start/{flag=1} flag; /end/{flag=0}' sample.txt awk '/start/,/123456/,/end/' sample.txt
sed '/start.*123456.*end/!d' sample.txt
sed -n '/start.*123456.*end/p' sample.txt
sed -e...
2,830
Posted By sagar_1986
Hello RavinderSingh13 , Actually i know...
Hello RavinderSingh13 ,


Actually i know how to get 'n' ( fixed) number of lines before and after the matching pattern, but here the issue is that position of 'start' and 'end' is not fixed.
...
2,830
Posted By sagar_1986
Grep lines between two specific words after matching pattern
grep specific number of lines from file after matching pattern


I want to grep all the lines between keyword 'start' to 'end' after matching pattern/ number 12345

Is it possible?
Thanks in...
1,834
Posted By sagar_1986
Thanks sir,Don Cragun This works perfect for...
Thanks sir,Don Cragun

This works perfect for me.

actually when I was replying to post no 5, post 6 came and when I read that I have posted thank you also.
Sorry for inconvenience because of...
1,834
Posted By sagar_1986
I have already tried DATE_FORMAT(date,...
I have already tried DATE_FORMAT(date, format_mask) function but it gives error


'DATE_FORMAT' is not a recognized built-in function name.

Details of database are as below.


...
1,834
Posted By sagar_1986
I have tried to do it in sql server 2012 but the...
I have tried to do it in sql server 2012 but the column length is flexible and I have also tried to get date format as desired from 100 to 114

now I am doing this


...
1,834
Posted By sagar_1986
sed within awk statement
input

| Jan 8 2018 11:28PM| 24 | 75 | 51 | 1 | 1.600|
| Jan 8 2018 12:01PM| 52 | 823 | 21 | 6 | 2.675|

desired output

Jan-8-2018-11:28PM 24 75 51 1 1.600...
Forum: HP-UX 03-02-2016
3,151
Posted By sagar_1986
Shc command for hp UNIX 11.23 itanium
where to download shc compiler package for hpux 11.23 itanium,or any alternatives for converting shell script to binary
658
Posted By sagar_1986
Listing multiple files in windows cmd
i have multiple files like




how to do list files from new_30 to new_50

i have tried this command but it wont work

dir new*{30-50}.txt

my exact requirement is to get line count of...
983
Posted By sagar_1986
Thanks it works for me I would like to know...
Thanks it works for me

I would like to know can we get file size also in same command
like
983
Posted By sagar_1986
List line count of multiple files in windows server 2012
how to find out line count ( wc -l ) for multiple fines in windows cmd

the command which i a using to find line count for single file is

type sec0001.txt | find /c /v ""

but how to use it...
2,100
Posted By sagar_1986
plz help me to initiate is it safe to enable...
plz help me to initiate

is it safe to enable telnet
2,100
Posted By sagar_1986
Thanks for the reply, I can write few shell...
Thanks for the reply,

I can write few shell script but i have no idea in communication between two servers with different OS.This is my home work.

what i have thought is to list all the files...
2,100
Posted By sagar_1986
Script to communicate from UNIX server to windows server
I have two servers linux and windows and i want to compare files which are in unix server that to windows server and find out which are missing

that means i have 50 files with 6000 records in each...
1,077
Posted By sagar_1986
i have tried this one from previous post egrep...
i have tried this one from previous post
egrep -v $(cat file2.csv | tr '\n' '|' | sed 's/.$//') file1.csv

but its not working,as i want to remove all the duplicate records from file 2 considering...
1,077
Posted By sagar_1986
Removing duplicates from new file
i hav two files like






i want to remove/delete all the duplicate lines in file2 which are viz unix,unix2,unix3.I have tried previous post also,but in that complete line must be similar.In...
840
Posted By sagar_1986
Removing duplicates from new file
i hav two files like






i want to remove/delete all the duplicate lines in file2 which are viz unix,unix2,unix3
1,409
Posted By sagar_1986
Perl script to find last column
Dear all,

I am new bee in perl scripting,i have generated one report in which i want to paste some data/text at the end,plz help me

format is like this
$worksheet1->write(...
804
Posted By sagar_1986
Dear RudiC, plz let me the logic how to do...
Dear RudiC,

plz let me the logic how to do it, because the no of rows and columns are variable (may change every time).
804
Posted By sagar_1986
Replace rows to column
I have a csv file and i want to convert its rows into columns

sample file like this


Row1,1,2,3,......,n
row2,4,5,6,.......,n
.
.
.
.
rown,7,8,9,........,n


i want it like this

...
2,627
Posted By sagar_1986
Thanks Scrutinizer, i got it......plz let me...
Thanks Scrutinizer,
i got it......plz let me know this script will not work if not file is present ??...i.e. by any how my terminal equipment is not working then i will not get available files so i...
2,627
Posted By sagar_1986
Dear Don Cragun, the script prints the...
Dear Don Cragun,

the script prints the output properly but the directed output (file) is not ok,the output of print is


but in file the output is



i also want to share one thing that,...
2,627
Posted By sagar_1986
Dear Don Cragun, Thank you very much for...
Dear Don Cragun,

Thank you very much for your suggestion,but i would more likely to ask that how to get this output in same line and how to redirect output of print in file.
I want output like...
Showing results 1 to 25 of 92

 

Featured Tech Videos

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