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
Hello Experts,
I am truly a beginner in shell and perl . Need an urgent help with sorting a file. please help. wouldn't mind whether in perl or shell script.
Here are the details.
------------------------------------------------------
Input Text file EX:... (9 Replies)
Discussion started by: pradyumnajpn10
9 Replies
3. Shell Programming and Scripting
Hello,
I'm trying to find a solution or a proper tool for the following job: I need to sort a text document with indented sections, so all levels of indentation are sorted independently for each section.
Particularly, I need this for Cisco routers' running config files to compare them with... (2 Replies)
Discussion started by: kobel
2 Replies
4. Shell Programming and Scripting
Dear all,
I have a complex data file shown below,,,,,
A_ABCD_13208 0 0 4.16735 141044 902449 1293900 168919
C_ABCD_13208 0 0 4.16735 141044 902449 1293900 168919
A_ABCDEF715 52410.9 18598.2 10611 10754.7 122535 252426 36631.4
C_DBCDI_1353 0... (19 Replies)
Discussion started by: AAWT
19 Replies
5. UNIX Desktop Questions & Answers
Hi;
I have a text file like this:
1
10
11
2
3
4
M
X
Y
When I sort it numerically using sort -n, it looks like this:
Y
X
M
1
2
3
4
10 (3 Replies)
Discussion started by: a_bahreini
3 Replies
6. Shell Programming and Scripting
I have a tab delimited file with 5 columns
79 A B 20.2340 6.1488 8.5086 1.3838
87 A B 0.1310 0.0382 0.0054 0.1413
88 A B 46.1651 99.0000 21.8107 0.2203
89 A B 0.1400 0.1132 0.0151 0.1334
114 A B 0.1088 0.0522 0.0057 0.1083
115 A B... (2 Replies)
Discussion started by: Lucky Ali
2 Replies
7. Shell Programming and Scripting
File A
99 >ac >ss >juk
70 >acb >defa
90 >ca
100 >aa >abc >bca
85 >cde
81 >ghi >ghij
87 >def >fgh <ijk
89 >fck >ghij >kill >aa
The given output shud be
100 >aa >abc >bca
87 >def >fgh <ijk
89 >fck >ghij >kill >aa (2 Replies)
Discussion started by: cdfd123
2 Replies
8. UNIX for Dummies Questions & Answers
i need help with my script....
i am suppose to grab files within a certain date range
now i have done that already using the touch and find command (found them in other threads)
touch -d "$date_start" ./tmp1
touch -d "$date_end" ./tmp2
find "$data_location" -maxdepth 1 -newer ./tmp1 !... (6 Replies)
Discussion started by: deking
6 Replies
9. Shell Programming and Scripting
Hi
Having a file as below
file.txt
error Server Network Name Dept Date Time
===========================================================================================================================
0 ServerA LAN1 AAA IT01 04/30/2008 09:16:26
0 ... (3 Replies)
Discussion started by: karthikn7974
3 Replies
10. Shell Programming and Scripting
Hi all
My text file looks like this:
start doc
... (certain number of records)
REC3|Emma|info|
REC3|Lukas|info|
REC3|Arthur|info|
... (certain number of records)
end doc
start doc
... (certain number of records)... (4 Replies)
Discussion started by: Indalecio
4 Replies