10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All I have a big set of data which I would like to summerize to have a better sense of it
the problem is like this ...
I have more than 200 files each related to a person which includes different sentences with specific elements (files in a directory)
e.g. mark (one file in the directory)... (9 Replies)
Discussion started by: A-V
9 Replies
2. Shell Programming and Scripting
Hi,
I do have couple of files in folder. The names of each of the files have a pattern.
B_A17_A17_1T.txt
B_A17_A17_2T.txt
B_A17_A17_3T.txt
B_A17_A17_7T.txt
.....
.....
B_A17_A17_45T.txt
Each of the above files have the same pattern of data with 4 columns and have an header for... (10 Replies)
Discussion started by: Kanja
10 Replies
3. UNIX for Dummies Questions & Answers
i have files like
1)20131112_abc_01.csv and
2)20131113_abc_01.csv and
3)20131113_abc_02.csv
when i try to fetch the file in the next day. it shud pick the third file..
plz help me..
and i use `date +"%Y%m%d"` command to fetch..it fetches the current date... (2 Replies)
Discussion started by: applepie
2 Replies
4. Shell Programming and Scripting
Hi All,
I have 100's of files in the following format. I need to grep or parse out some values from each of the files
{
“tree”: “((A:0.2{0},B:0.09{1}):0.7{2},C:0.5{3}){4};”,
“placements”:
, ], “n”: },
{“p”: ], “n”: }
],
“metadata”:
{“invocation”:
“pplacer -c... (1 Reply)
Discussion started by: Lucky Ali
1 Replies
5. Shell Programming and Scripting
Hi all - I''m in a little bit of jam - If you can please help
I have a file that has the following content ( please see below)
I need to read the file and then get this result in this format
------------- To put out in this format
name: sophis Total: 22328
name: tca ... (2 Replies)
Discussion started by: mnassiri
2 Replies
6. Shell Programming and Scripting
Hi,
i have to find a string in a file and positin of the string in the file would come in some particular interval.
let's say file is 1-1000 lines and string is in from 200-300line.
could any one suggest me how to get make the grep search for the string in that particular portion of the... (4 Replies)
Discussion started by: tarakant
4 Replies
7. Shell Programming and Scripting
Hi i am using shell script which perform oracle database query and after that output is redirect to some temporary file.
the output of this file looks like
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Aug 5 16:08:06 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
... (6 Replies)
Discussion started by: esungoe
6 Replies
8. Shell Programming and Scripting
I am using awk command for greping an value from the file
the file contains ..
file
----------------------------
content-----------
--------
String main = "81507066666";
------------------------------
i am greping the above value using awk command
NumberToReplace=`cat "file" | grep... (1 Reply)
Discussion started by: vastare
1 Replies
9. Shell Programming and Scripting
i have a ksh script :
#!/bin/ksh
TZ=`date +%Z`+24 ;a=`date +%Y-%m-%d`
b=`date +"%H:%M:%S"`
cd /ednadtu3/u01/pipe/logs
for i in Archiver1.log
do
cat $i | grep $a | grep $b >> /ednadtu3/u01/pipe/naveed/Insert_Date.txt
done... (4 Replies)
Discussion started by: ali560045
4 Replies
10. Shell Programming and Scripting
i have a k shell script that grep less than certain modified date
-------------------------------------------------
#!/bin/ksh
for i in *
do
day=`ls -ltr | grep $i | tr -s " " | cut -d " " -f6-7 | awk 'substr($0,7,4)substr($0,1,5)substr($0,11)<"Feb 1"' `
echo $day
done... (2 Replies)
Discussion started by: ali560045
2 Replies