10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
2. Shell Programming and Scripting
Hi, I have some data I have taken from the internet in the following scheme:
name
direction
webpage
phone number
open hours
menu url
book url
name
...
Of course the only line that is mandatory is the name wich is the one I want to sort by.
I have the following sed & awk script that... (3 Replies)
Discussion started by: devmsv
3 Replies
3. UNIX for Dummies Questions & Answers
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
Discussion started by: High-T
1 Replies
4. Shell Programming and Scripting
Hello
I greped some lines from an xml file and generated a new file.
but some entries are missing my table is unsorted.
e.g.
NAME="Adel" ADDRESS="Donaustr." NUMBER="2" POSTCODE="33333"
NAME="Adel" ADDRESS="Donaustr." NUMBER="2" POSTCODE="33333"
NAME="Adel" NUMBER="2" POSTCODE="33333"... (5 Replies)
Discussion started by: witchblade
5 Replies
5. Shell Programming and Scripting
Pseudo name=hdiskpower54
Symmetrix ID=000190101757
Logical device ID=0601
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW... (7 Replies)
Discussion started by: Daniel Gate
7 Replies
6. Shell Programming and Scripting
Hi guys,
I am trying to sort numbers in the string in descending order but for some reason sort fails.
n129$ echo "81 240" | sort -r
81 240
n129$
I am not sure what am I doing wrong. Is there a 100% reliable way to make sure that sort will always work. I mean on SUNS and IBM machines. ... (4 Replies)
Discussion started by: aoussenko
4 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I'm trying to sort a file which has many lines with the sort command.
I'd like to send the sorted content in the same file.
But when I do that, I've the content which is sorted, but all is on one line... I view the content in Notepad++
Could somebody help me to keep the original... (5 Replies)
Discussion started by: tevious
5 Replies
8. UNIX for Dummies Questions & Answers
Hello,everyone. I am learning some Info commands.I put all commands and their explanations in a file.
This is a part of it:
ESC PgUp (scroll-other-window-backward)Scroll the other window backward
ESC Right (forward-word) Move forward a word
ESC r (move-to-window-line)
ESC TAB... (3 Replies)
Discussion started by: vic005
3 Replies
9. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
10. Shell Programming and Scripting
Dear all
There is a file which contains the following formatted files. I need to sort it by substring(strings after dot) in order to process efficiently.
Please give me any idea how to sort it.
Sample file:
1AAABBBCCC.20080401
1AAABBBCCC.20080402
2AAABBBCCC.20080401... (3 Replies)
Discussion started by: mr_bold
3 Replies