10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17".
i.e need to get records having exact 17 pipe separated fields(no more or less)
currently i have below :
awk... (1 Reply)
Discussion started by: ketanraut
1 Replies
2. Shell Programming and Scripting
Hi,
I've 2 queries.
I need to list files which doesn't contain a particular text in the content. For example say, I need to list files which doesn't contain string "abc" from all files ending with *.bad. How can I do that?
Also, I want to display number of lines in a file which has atleast... (2 Replies)
Discussion started by: Gangadhar Reddy
2 Replies
3. Shell Programming and Scripting
Hi All!
I would like to solve a problem but I have no clue of how do it!I will be grateful if someone could help me!
I have a file like this:
> genes | transcript
...sequence....
>ENSMUSG00000006638|ENSMUST00000006814
GGGAAATGGAATACCCCTACACAACCAAGATGCTGAGTTCCTCCCTGAGCCCGCAAAACG... (2 Replies)
Discussion started by: giuliangiuseppe
2 Replies
4. Shell Programming and Scripting
Hi guys,
I am having a file which where i need to take line count based on searching a particular string from a list say list_file.txt which occurs in 2nd column of my main file and to take the line count which doesnot exist in list file say list_file.txt
for eg: my main file looks like this... (4 Replies)
Discussion started by: rohit_shinez
4 Replies
5. Shell Programming and Scripting
I need a scripting AWK to compare 2 files.
file 1 and 2 are list of keywords
1 is
a
b
c
d
2 is
aa
aaa
b
bb
ccc
d
I want the AWK script to give us the number of times every keyword in file 1 occurs in file 2.
output should be
a 2 (7 Replies)
Discussion started by: anhtt
7 Replies
6. Shell Programming and Scripting
Hello,
I want to add a sentence to "post column" those who are only less than 30 characters.Thank you very much for your help.
"category","title","post"
"Z","Zoo","test 54325 test 45363mc."
"Z","Zen","rs2w3rsj 2d342dg 2d3s4f23 d23423s23h 2s34s2423g ds232d34 2342."
"Z","Zet","test4444... (3 Replies)
Discussion started by: hoo
3 Replies
7. Shell Programming and Scripting
I am having a zipped file which has the following URL contents -
98.70.217.222 - - "GET /liveupdate-aka.symantec.com/1340071490jtun_nav2k8enn09m25.m25?h=abcdefgh HTTP/1.1" 200 159229484 "-" "hBU1OhDsPXknMepDBJNScBj4BQcmUz5TwAAAAA" "-"
In this line here is we only need to consider the... (4 Replies)
Discussion started by: Naks_Sh10
4 Replies
8. Shell Programming and Scripting
Hi,
I have a script that checks the length of each record/line in file - This seems to be working when there are no special systems character that are invisible or hidden.
awk -v file=$file '{
if (filename==file)
{ k+=$5
if (length() <= 10 ){print size length(), "bytes " k}
}... (2 Replies)
Discussion started by: asemota
2 Replies
9. Shell Programming and Scripting
Hi,
Came across a weird problem today.
I was just trying to write this small script which would read the number of lines in a file. Depending on the count some further processing would be done. I used wc -l in order to get that done.
But since it depends on the number of new line characters, if... (1 Reply)
Discussion started by: King Nothing
1 Replies
10. Shell Programming and Scripting
Hi,
I want to get the line count of the file from the 2nd line of the file ? The first line is header so want to skip that.
Thanks. (8 Replies)
Discussion started by: smc3
8 Replies