10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
2. Shell Programming and Scripting
it would be great if someone can help me with the following:
I want to search for the rows from fileA in column 1 of fileB and output column 2 of fileB if found in fileC. In the moment I search within the complete file. How can I change the code so only column 1 is searched?
cat fileA... (7 Replies)
Discussion started by: Manyaka
3. UNIX for Dummies Questions & Answers
i have a file with some data and i need replace a perticular value with some other value from another another file
now the requirement is need to replace the "idle.txt" is with "mike_5678" here 5678 from file2.txt...
file2.txt contains only... (2 Replies)
Discussion started by: dssyadav
4. Shell Programming and Scripting
I have two csv files, with the following formats:
Application, This occured blah
Application, That occured blah
Application, Also this
AnotherLog, Bob did this
AnotherLog, Dave did that
Uk, London, Application, datetime, LaterDateTime, Today it had'nt... (8 Replies)
Discussion started by: PerlNewbRP
5. OS X (Apple)
I'm a "newbie" to using Command-line... A few half-remembered DOS commands from 30 years ago, and the very handy "Sudo rm -R pathname" REMOVE command...
I do a lot of "cleaning" of plain-text OCR text files. with assorted common
line-break, punctuation and capitalization... (1 Reply)
Discussion started by: TheMacGuy
6. Shell Programming and Scripting
I am having a user.txt contains the name of users and passwd.txt file contains as passwd.txt
adm:x:3:4:adm:/var/adm:/sbin/nologin... (4 Replies)
Discussion started by: Manabhanjan
7. Shell Programming and Scripting
Hi I'm in the need of a script that basically takes two files and generates a 3rd. It reads from fileA and fileB and copies lines from fileA if they start by a word of fileB.
The dog is beautful
Where is your cat
Why are you sad?
dog... (4 Replies)
Discussion started by: FrancoisCN
8. Shell Programming and Scripting
# Set variable
# THIS IS THE MAIN FILE.
Interface Ethernet0/0 "outside", is up, line protocol is up
Hardware is i82546GB rev03, BW 100 Mbps
Full-Duplex(Full-duplex), 100 Mbps(100 Mbps)
MAC address... (6 Replies)
Discussion started by: irongeekio
9. Shell Programming and Scripting
I want to edit a file using shell script..For ex...a file called /etc/passwd..here I am searching for "ftp" if it is there just change it to "tftp" without using any temporary file. (3 Replies)
Discussion started by: Vichu
10. Shell Programming and Scripting
can you please help me in this one..
i have a many scripts in a directory & i get many requests to change the code of a particular script.
for example file abc.txt contains
... (3 Replies)
Discussion started by: geeko