10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I need to find a file and print its contents
I am trying but it is not working
find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print
Version
$ bash -version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) (1 Reply)
Discussion started by: SVRao19056
1 Replies
2. Linux
Hi,
I have a file in which I have to separate genes from phenotype data. I have written a program as given below which prints just the gene records.
1. But I want to print all the data under each specified record to the output file. So the file has all the data like for every record. An example... (2 Replies)
Discussion started by: kaav06
2 Replies
3. Shell Programming and Scripting
I have the following code:
print @testarray;
which returns:
8
8
8
9
How do I return the array like this:
The output is: 8, 8, 8, 9 (5 Replies)
Discussion started by: streetfighter2
5 Replies
4. Shell Programming and Scripting
Hi,
Need help in writing a script to read the contents of this file test
Test
00a
00b
00c
00d
00e
00f
where it need to read each line to give a display such as
form meta from dev 00a , config=Striped; add dev 00b:00f to meta 00a
Can any one help me in writing this script (2 Replies)
Discussion started by: praveen1516
2 Replies
5. Shell Programming and Scripting
AT
----------
0
Elapsed: 00:00:00.02
SO
----------
0
Elapsed: 00:00:00.01
SE
----------
0
Elapsed: 00:00:00.01
CR
---------- (4 Replies)
Discussion started by: sandy1028
4 Replies
6. Shell Programming and Scripting
Hi,
Is there anyway to print contents of any file ( say log files that grow automatically) within some timeframe ( comparing with current time), say
print contents of the added in:
1) last 2 hr
2) last 45 min
3) last 3 hrs 47 min (3 Replies)
Discussion started by: fed.linuxgossip
3 Replies
7. Shell Programming and Scripting
suppose u hava a file
G1354R tGGC-CGC
D1361N cGAC-AAC
I1424T ATC-ACC
R768W gCGG-TGG
Q1382R CAG-CGG
Q178E gCAG-GAG
Y181C TAC-TGC
.........cont.
So the question is
By searching for first word i.e.character say R
output shud be
R768W gCGG-TGG
R182P CGG-CCG
R189W ... (6 Replies)
Discussion started by: cdfd123
6 Replies
8. Shell Programming and Scripting
i'm writing some simple scripts to help me learn perl.
why does the print command get called after the shell script is executed?
the purpose of the shell script is to simply echo to the screen "script run". which is does, but before the print command, you can clearly see the shell script is... (3 Replies)
Discussion started by: mjays
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am running this command in perl
print "this is a test message @1.00 pm\n"
but the output i am getting as
this is a test message .00 pm
pls help, how to get the proper output (2 Replies)
Discussion started by: vasikaran
2 Replies
10. UNIX for Advanced & Expert Users
I have the following questions regrading Unix commands.
1. Could you provide the commands how to print the content of ".profile" and ".shrc" files on the screen using "more" and "piple" command?
2. How can i use the "head" and "tail" to display lines from 25 through 75...
3. How to search... (1 Reply)
Discussion started by: aadba
1 Replies