10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wrote an awk script to filter "uninteresting" commands from my ~/.bash_history (I know about HISTIGNORE, but I don't want to exclude these commands from my current session's history, I just want to avoid persisting them across sessions).
The history file can contain multi-line entries with... (6 Replies)
Discussion started by: ivanbrennan
6 Replies
2. Shell Programming and Scripting
Hi Experts,
i have a file like below
****
table name is xyz
row count for previous day 10
row count for today 20
diff between previous and today 10
scan result PASSED
****
table name is abc
row count for previous day 90
row count for today 35
diff between previous and today 55... (4 Replies)
Discussion started by: Lakshman_Gupta
4 Replies
3. Shell Programming and Scripting
In end of https://www.unix.com/shell-programming-scripting/103227-while-read-loop-scope-variables-shell.html
mjd_tech gives script which can read some values directly without manually input, but if no value is the right one, my understand is, it will on hold for waiting the next input, but when I... (7 Replies)
Discussion started by: newoz
7 Replies
4. Shell Programming and Scripting
Hi,
I'm a newbie with scripting so I'd appreciate any help.
I have a file import.txt with below text
AA_IDNo=IDNoHere
AA_Name=NameHere
AA_Address=AddressHere
AA_Telephone=TelephoneHere
AA_Sex=SexHere
AA_Birthday=BirthdayHere
What I need is that the Lines for Name, Address and... (3 Replies)
Discussion started by: heretolearn
3 Replies
5. Shell Programming and Scripting
Hi,
Can any one tell me is their any "hold buffer" in perl similar to sed.
I have to find a pattern, once that pattern found then need to go backward and find another pattern and print.
Example:
Below are the contents present in a file
##
block
IPs
URLs
URL_IPs
Unblock
URLs
... (4 Replies)
Discussion started by: Anjan1
4 Replies
6. Shell Programming and Scripting
Good day.
Trying to make a sed script to take text file in a certain format and turn it into mostly formatted html.
I'm 95% there but this last bit is hurting my head finally.
Here's a portion of the text-
Budgeting and Debt:
Consumer Credit Counseling of Western PA
CareerLink
112... (5 Replies)
Discussion started by: fiendracer
5 Replies
7. Shell Programming and Scripting
Morning, people!
I'd like to call upon your expertise again, this time for a sed endeavor.
I've already searched around the forums, didn't find anything that helped yet.
background: Solaris 9.x, it's a closed system and there are restrictions to what is portable to it. So let's assume I... (4 Replies)
Discussion started by: ProGrammar
4 Replies
8. Shell Programming and Scripting
Write a sed script to extract the year, rank, and stock for the most recent 10 years available in the file top10_mktval.csv, and output in the following format:
------------------------------
YEAR |RANK| STOCK
------------------------------
2007 | 1 | Exxon... (1 Reply)
Discussion started by: beibeiatNY
1 Replies
9. Shell Programming and Scripting
Hi. I have some questions about using sed. I cannot use the hold buffer. For example i want to put first line to the buffer than take second line and append the buffer to the second line.then 3th to the all. It will be like 2->1->3 th lines. Any idea? (1 Reply)
Discussion started by: burakkilic
1 Replies
10. UNIX for Dummies Questions & Answers
Hi... I have a question about how many lines the window can remember... is there an environemtn varible for this I can change??? I'm not talking about how many previous commands it remembers. I am talking about how many lines it remembers and for how many lines I can press "page-up" and I can... (4 Replies)
Discussion started by: lmanchur.
4 Replies