Search Results

Search: Posts Made By: shamushamu
4,522
Posted By shamushamu
Sorry about that, vgersh99. I'm new to Linux and...
Sorry about that, vgersh99. I'm new to Linux and this forum.

I just found and fix my codes. I changed the pattern to:


awk '/^[1-9]/{ before-=1;after=2; next }



But I'm still very...
4,522
Posted By shamushamu
Ghostdog, Im not sure where the More Unix/Linux...
Ghostdog, Im not sure where the More Unix/Linux Forum is because I couldn't find it in this forum list.

I was able to get a code from this forum and apply it to what I'm doing. It's not exact...
4,522
Posted By shamushamu
delete lines between patterns
Hi, I've searched in this forum all day long but was not able to find enough codes to help me do a task. The only code that I can come up with is this:

sed '/[0-9] [0-9] /,/[0-9] [0-9]...
5,441
Posted By shamushamu
Thanks to everyone who replied. What happened to...
Thanks to everyone who replied. What happened to my Linux is my root user told me that I need a reboot. After the reboot, then my email with attachment works. Here's my code with a subject, body,...
5,441
Posted By shamushamu
Yes, I have tried a few of them. They used mailx...
Yes, I have tried a few of them. They used mailx instead of mail. Also, once I ran their scripts, its waiting for me to input something. So I typed in a letter or a filename, but it still continue...
5,441
Posted By shamushamu
Send attachment in Linux
Hi, I have searched the site for info on sending an attachment in Linux, have tried a few people mailx codes but to no success. Can someone please help me? This is what i have so far:
...
2,147
Posted By shamushamu
Vidyadhar85, Thanks for the explaination....
Vidyadhar85, Thanks for the explaination. Leverage from your codes, I have modified it for anyone who might find this useful. I used:

sed -e 's/, /\n/g' -e '/pr/!d' -e 's/contents: /\n/g' input...
2,147
Posted By shamushamu
Thanks, Radoulov for the perl script. I'm using...
Thanks, Radoulov for the perl script. I'm using .bashrc and perl is much more complicated. I think your code is looking at the 4th field after the last comma. My report varies so it's not always...
2,147
Posted By shamushamu
negate search help
Hi, I've tried a lot of negate codes in this forum, but they do not perform what I intended. Please help.

inputfile:

Paragraph1 contents: die1, die2, die3, pr_name1, pr_name2
pr_name3,...
3,980
Posted By shamushamu
Freelong, Thanks for the quick reply. I...
Freelong, Thanks for the quick reply.

I tried your codes in one line: sed '/word2/{N /word3/D }' filename > output, but it didn't work. It says sed: -e expression #1, char 12: Extra characters...
3,980
Posted By shamushamu
search 2 lines and delete above line
Hi, I've been searching in this forum for the last 4 hours trying to do one thing: search 2 lines and delete the above line. So far I have not be able to find something similar in this forum, so I...
15,222
Posted By shamushamu
This is a difficult problem ..
Well, it has been a few days since I posted this thread. So far are there are 36 viewers and 0 replies :( This must be a challenging one.

While waiting for a solution, I've found a "not so...
15,222
Posted By shamushamu
delete specific task in crontab queue
Hi everyone,

I'm a newbie to Linux scripting. I've been reading this forum for the last 6 hours trying to figure out the crontab and mail commands for the first time. I get to the point of...
11,160
Posted By shamushamu
Wow! More power-users with just one line...
Wow! More power-users with just one line command. Thank you for the solutions everyone :)

The awk command above looks like Chinese language to me. I need to go online and dissect the function...
11,160
Posted By shamushamu
Nullwhat, Thank you for the script. I'm...
Nullwhat,

Thank you for the script. I'm just got to work and tried your command:

sdiff -s -w 200 file1 file2 > file3

I was able to get close. So I tried:

sdiff file1 file2 > file3
...
11,160
Posted By shamushamu
Thank you to everyone who have replied :) but...
Thank you to everyone who have replied :) but ....

Sometimes this might be a long list, unalphabetized, and the words might be lb_nhb_5x_gihsd2_frnas, so spotting the differences between 2...
11,160
Posted By shamushamu
Hi ctruhn, Thank you for replying so quickly. I...
Hi ctruhn, Thank you for replying so quickly. I was afraid that my post is lengthy and confusing. :)

My goal is to compare 2 different files and show the result side by side in this format:
...
11,160
Posted By shamushamu
compare two files using while and sed .. debug my script please
Hi, I'm a newbie to Linux. I have not done programming before, but I accidentally stumble upon Linux scripts at work about 2 weeks ago. I got interested and write scripts to automate my job duties....
Showing results 1 to 18 of 18

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