10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 1.6 GB (and growing) of files with needed data between the 11th and 34th line (inclusive) of the second column of comma delimited files. There is also a lot of stray white space in the file that needs to be trimmed. They have DOS-like end of lines.
I need to transpose the 11th through... (13 Replies)
Discussion started by: Michael Stora
13 Replies
2. Shell Programming and Scripting
Hi,
I have a file. In this file when ever the word "ABC" occurs at position from 25 and 34 I would like to replace
the value at postion 100 to 5 for the first 1000 rows only.
I have written the following Awk command.
nawk 'substr($0,25,9)=="ABC" {print $0}' filename
The above command... (4 Replies)
Discussion started by: pinnacle
4 Replies
3. Shell Programming and Scripting
picked this up from another thread.
echo 1st_file.csv; nawk -F, 'NR==FNR{a++;next} a{b++}
END{for(i in b){if(b-1&&a!=b){print i";\t\t"b}else{print "NEW:"i";\t\t"b} } }' OFS=, 1st_file.csv *.csv | sort -r
i need to use the above but with a slight modification..
1.compare against 3 month... (25 Replies)
Discussion started by: slashbash
25 Replies
4. Shell Programming and Scripting
Hi everyone,
I've been thinking and trying/changing all day long the below code, maybe some awk expert could help me to fix the for loop I've thought,
I think I'm very close to the correct output.
file1 is:
<boxes content="Grapes and Apples">
<box No.="Box MT. 53">
<quantity... (8 Replies)
Discussion started by: Ophiuchus
8 Replies
5. Shell Programming and Scripting
Hi,
I have a file look likes this :
--->start hir
Trace file: pudwh_ora_9998.trc
Sort options: fchela exeela
***************************************************************count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed... (3 Replies)
Discussion started by: yoavbe
3 Replies
6. Shell Programming and Scripting
Hi ,
I have file named docs.txt
The content of the file look like this:
DOC disk location Size
======= ===== ============= =========
TXT A /dev/dm-1 10
TXT B /dev/dm-2 10
BIN C ... (3 Replies)
Discussion started by: yoavbe
3 Replies
7. IP Networking
I have a Red Hat linux server X on a x.x.0.0 network. This machine also has to communicate with another server Y on a network called y.y.0.0
Server X has two network interfaces.
eth0 is configured on the x.x.0.0 network and has a default gateway on the x.x.0.0 network.
In order to... (4 Replies)
Discussion started by: soliberus
4 Replies
8. Shell Programming and Scripting
Hi all!
I have a question regarding possibilities to do line counts.
SEARCH_VAR=TEX
rsh $REM_HOST -l $REM_USER "cd $REM_DIR; ls *$SEARCH_VAR* 2> /dev/null" | sort -n | awk 'BEGIN { FS = "-" } ; { print $1"\t"$0 }'
Will produce an output on the screen like this:
483 483-SOME-TEXT-1... (1 Reply)
Discussion started by: bbergstrom74
1 Replies
9. Shell Programming and Scripting
Hey, I'm writing this bash script that will test print me many copies of the same program but with different combos of 4 variables being between 1 and 100. Here's the code:
#! /bin/bash
x=0
for ((a=1; a < 101; a++))
do
for ((b=1; b < 101; b++))
do
for ((c=1; c < 101; c++))
do
for... (4 Replies)
Discussion started by: Silverlining
4 Replies
10. UNIX for Dummies Questions & Answers
This is a very hard unix command which I could not perform..... :( ......here it is:
The file ~unx122/public/data.txt contains over 18,000 lines of text. Here are the first ten lines of the file:
pagination 20657 2740 28416 31090 18145
shiner 1695 2507 9964 14512 13122
cool 29210... (1 Reply)
Discussion started by: netmaster
1 Replies