10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Experts,
Need your guidance for case statement. I tried many way but no success yet.Now my existing code is doing something like below. Each Line of the input file contains one test case.#!/bin/bash
FILE=$1
while read LINE; do
do COMMAND
done < $FILE
Now I want to modify the code... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies
2. Shell Programming and Scripting
Hi,
I am reading file records inside a while loop,
and want to update the record when certain condition is met.
How can I update a file while being read?
I want to avoid using temporary files, copy, rename, ...
while IFS=',' read -r f1 f2
do
function(f1,f2)
if
then
<add... (1 Reply)
Discussion started by: ysrini
1 Replies
3. Shell Programming and Scripting
This is for Red Hat Enterprise Linux Client release 5.7 (Tikanga).
Wanna extract entire contents of a tar.gz to a folder of my choosing. Thanks (2 Replies)
Discussion started by: stevensw
2 Replies
4. UNIX for Advanced & Expert Users
how to read the text file inside the jar without extracting jar. (3 Replies)
Discussion started by: karthikn
3 Replies
5. Shell Programming and Scripting
Hi Gurus,
I am working with a korn shell script to simplify some operations of calculation number of lines inside compressed file.
The called function (inside a cycle) is the following:
#########################################
# F.ne: CheckCount
#########################################... (3 Replies)
Discussion started by: GERMANICO
3 Replies
6. UNIX for Dummies Questions & Answers
All,
The bottom line is that im reading a file, storing it as variables, recursively grep searching it, and then piping it to allow word counts as well. I am unsure on how to open any .zip .tar and .gzip, search for keywords and return results.
Any help would be much appreciated!
Thanks (6 Replies)
Discussion started by: ryan.lee
6 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
Need help. Anybody seen this kind of file before?
file.tgz.1of2
file.tgz.2of2
how to extract this tgz file? Any help?
Tq (5 Replies)
Discussion started by: zeedwolf
5 Replies
8. Shell Programming and Scripting
Hi have one Perl file inside that i am defining
at an array file.
@temp_vmdk_files = `grep vmdk '$guest_vmx'`
where my $guest_vmx=/vmfs/volumes/47e40fec-9c8bb7f7-d076-001422159f8a/BES Exchange/BES-Exchange.vmx
and i am just want to do grep of "vmdk" files from the above path
but when... (5 Replies)
Discussion started by: bp_vardhaman
5 Replies
9. UNIX for Dummies Questions & Answers
Let's say I've got File.tgz that contains:-
Apple.txt
Banana.txt
Carrot.txt
AppleBanana.txt
Now, I would like to only extract files that contain the patter "Apple".
I've tried this
tar -xvf File.tgz 'tar -tf File.tgz | grep 'Apple''
but it does not work. Please help. Thanks. (12 Replies)
Discussion started by: percivalwcy
12 Replies
10. Shell Programming and Scripting
i have to grep a particular pattern say "meter number" in 100s of zip files
file1.zip
:
:
:
:
file100.zip
how to achive this?
cat *.zip | grep "meter number"
also i dnt want to unzip and then grep it......
hope i made myself clear. thanks in advance (5 Replies)
Discussion started by: ali560045
5 Replies