Search Results

Search: Posts Made By: mayursingru
2,932
Posted By mayursingru
I think will solve your query. Its self...
I think will solve your query. Its self explanatory.


awk '{FS=" "} {if($5-$4<=200) print $0; else if($5-$4>200) print $1,$2,$3,$4,$4+200,$6,$7,$8,$9,$10,$11,$12}' test.txt
1,652
Posted By mayursingru
Hi, What the error thrown. I think the below...
Hi,
What the error thrown. I think the below code will work
ssh -q "server_name `sudo echo 'dbagroup::1234'` >> sudo /etc/group"
3,499
Posted By mayursingru
Hi, Could you please elaborate your query. ...
Hi,
Could you please elaborate your query.


Thanks & Regards,
Mayur
6,312
Posted By mayursingru
Hi, Try this for removing the tags and then...
Hi,
Try this for removing the tags and then continue with awk, gawk.

sed -e 's/<[^>]*>//g' test1.txt
7,099
Posted By mayursingru
Hi, I don't think there is something like ...
Hi,
I don't think there is something like fltyp in find and why don't you try searching for a particular filetype first, then store it in a variable and then pass that variable to desired...
1,027
Posted By mayursingru
Hi, I think the following must work. if [...
Hi,
I think the following must work.
if [ (${FXML_line:1129:4} -eq "S") -o (${FXML_line:1129:4} -eq "H")

Regards,
mayur Singru
3,214
Posted By mayursingru
Hi, First try cat -n filename . Then try the...
Hi,
First try cat -n filename . Then try the for loop in awk if you can give me the output to cat -n i will try but it won't be a generic solution only problem based solution.
3,214
Posted By mayursingru
Hi, Please elaborate the query. Also provide...
Hi,
Please elaborate the query. Also provide with more sample input/output of exactly what you want.
1,094
Posted By mayursingru
Hi, Why don't you try simple search & replace....
Hi,
Why don't you try simple search & replace.
sed 's/Zuvaia Flex de The New Foul/The New Foul Zuvaia Flex/' filenmae
1,325
Posted By mayursingru
Hi, A more simple way cat -n
Hi,
A more simple way cat -n
Forum: OS X (Apple) 12-23-2011
1,890
Posted By mayursingru
1) Because in your example you are trying to...
1) Because in your example you are trying to delete the jpg files "recursively" using rm command & "." refers to current directory there is no way for "rm" to recursively delete the files you want...
3,239
Posted By mayursingru
Hi Kelly, Missed one detail use following...
Hi Kelly,
Missed one detail use following line for grep
grep -H $Genename file1.txt > somefile.txt


Regards,
Mayur
3,239
Posted By mayursingru
Hi Kelly, Go through this and let me know...
Hi Kelly,
Go through this and let me know if there's any problem. Use tags while posting your queries. The code below is working fine for me and giving the expected output.

echo "the text"...
3,239
Posted By mayursingru
Hi Kelly, Please provide some sample...
Hi Kelly,
Please provide some sample data from the files.


Regards,
Mayur
Forum: AIX 08-25-2011
7,834
Posted By mayursingru
Hi, Go through this link [Chapter 4]...
Hi,
Go through this link
[Chapter 4] Users, Groups, and the Superuser

Removed link to illegal content. I hope the posting was unintentional

Regards,
Mayur
2,226
Posted By mayursingru
Hi, Try this sed 's:>:&\n:g' filename ...
Hi,
Try this

sed 's:>:&\n:g' filename

Regards,
Mayur
1,427
Posted By mayursingru
Hi cympaulife...
Hi cympaulife (https://www.unix.com/members/302100106.html),
try this will get the required output.

#!/bin/bash
awk '{
{
if(FNR%2==0)
print $0 > "file1"
else
print $0 > "file2"
}
} pg'...
1,427
Posted By mayursingru
Hi, try this awk '{for (i=1,i<NR,i++)...
Hi,
try this
awk '{for (i=1,i<NR,i++) if(NR%2==0) print $0 >> file1 else print $0 >> file2 }' filename


Regards,
Mayur
1,427
Posted By mayursingru
Hi, try this and let me know if it works. ...
Hi,
try this and let me know if it works.
awk '{FS="|"} {print $6}' filename > output file


Regards,
Mayur

---------- Post updated at 11:39 AM ---------- Previous update was at 11:36...
2,198
Posted By mayursingru
Hi, If you are familiar with awk you can try...
Hi,
If you are familiar with awk you can try this.
awk 'BEGIN{FS="/"}{print $2}' filename


Regards,
Mayur
Forum: Red Hat 07-26-2011
7,913
Posted By mayursingru
Hi, I think the below URL will clear your...
Hi,
I think the below URL will clear your first query.
IP Address Takeover (http://horms.net/projects/has/html/node8.html)


Regards,
Mayur
4,080
Posted By mayursingru
Hi, check this out. How to keep a...
Hi,
check this out.
How to keep a detailed audit trail of what’s being done on your Linux systems (http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html)

Find...
Forum: HP-UX 07-17-2011
4,578
Posted By mayursingru
Hi wahab, There is no "-l"...
Hi wahab,
There is no "-l" command line option in "top" and why do you want to use awk when there are sufficient options for the output you desire try man top .
25,756
Posted By mayursingru
Hi, If i get your query correctly you want to...
Hi,
If i get your query correctly you want to store output of command
ls -al -R /bigdir to a directory that output is in .tar.gz format. Just google it or try
man tar
man gunzip ...
7,939
Posted By mayursingru
Hi, For any process to run in background in...
Hi,
For any process to run in background in *nix systems you can use "&"
For Ex: firefox &

Regards,
Mayur
Showing results 1 to 25 of 36

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