10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to consolidate multiple information files (<hostname>.Linux.nfslist) into one file so that I can import it into Excel. I can get the file contents with cat *Linux.nfslist >> nfslist.txt. I need each line prefaced with the hostname. I am unsure how to do this.
--- Post updated at... (5 Replies)
Discussion started by: Kentlee65
2. Shell Programming and Scripting
I have a directory with the files,
1st: I want to Diplay each filename, underline it
2nd: Display the contents under the filename and
3rd: Redirect the above content to other file
4th: Remove the files from the directory
for i in $( cat $a/b/c.txt )
echo "... (1 Reply)
Discussion started by: Aditya_001
3. Shell Programming and Scripting
I have a environment property file which contains:
value1 = url1
value2 = url2
value3 = url3 and so on.
I need to search all *.xml files under directory for value1 and replace it with url1.
Same thing I have to do for all values mentioned in input file. I need script in unix bash... (7 Replies)
Discussion started by: Shamkamde
4. Shell Programming and Scripting
I usually get large files with different groups of entries; for example, each line starts with A, B, C, D, or E. Is there a way to separate all these entries and then write them in 5 different files with one awk program?
Thank you! (4 Replies)
Discussion started by: Avro1986
5. Shell Programming and Scripting
I have file A.txt
I have more then 600 lines...
I want separate the files as per 150 line.
First 150 lines ----File A1.xtx
Second 150 lines ---File A2.txt
Third 150 lines----File A3.txt.
... (4 Replies)
Discussion started by: asavaliya
6. Shell Programming and Scripting
Hi so far I created this script:
for i in `cat extract.filenames.tabc`
This is the original text file.
$ more tabc.txt
-rwx------- 1 alice staff 1586 2010-11-05 02:27 request-key
-rwx------- 1 ted staff 126 ... (3 Replies)
Discussion started by: wolf@=NK
7. Shell Programming and Scripting
I have 3 separate files within a folder. Every File contains data in a single column like
File1 contains data
File3 contains data
232323 (2 Replies)
Discussion started by: mayanksargoch
8. Shell Programming and Scripting
I have a folder which contains multiple config.xml files and one input file, Please see the below format.
Config Files format looks like :-
<NVPairs name="Global Variables">
... (0 Replies)
Discussion started by: haiksuresh
9. Shell Programming and Scripting
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Discussion started by: sksahu
10. UNIX for Dummies Questions & Answers
I would like to prompt for input and then use it as a variable in a script.
Something like this.
echo "What is your name?: \c"
echo "Your name is $reply" >file.txt
What am I missing?
Thanks, (7 Replies)
Discussion started by: darthur