All Questions
Tagged with cat shell-script
5
questions
1
vote
1
answer
4k
views
To print values in diferent line in mail body shell script
Below is the code to print contents of files present in the directory
File contents are :
apple
banana
grapes
mango
names=()
FILES=/path_to_dir/*
for f in $FILES
do
names+=($f)
done
...
2
votes
3
answers
4k
views
add new line after every end of file's contents while merging multiple files
I have written shell script to merge different file's contents I have created directories f1,f2,d1,d2 and files under them , I need to merge all files's contents : comand is
(find /home/ah5024331/f1 ...
1
vote
1
answer
179
views
Empty line appears while merging different file contents in shell script
I have written shell script to merge different file's contents I have created directories f1,f2,d1,d2 and files under them , I need to merge all files's contents : comand is
find /home/ah5024331/f1 /...
0
votes
2
answers
1k
views
How to merge multiple files into single file in given directories
I want to write a shell script to merge contents of multiple files in a given directories.
DIR1 contains sample1.txt sample2.txt
sample1.txt contents :---this is sample1 file---
sample2.txt ...
0
votes
1
answer
908
views
Combining multiple data files with header while also adding a data column
I have multiple tab delimited data files that are separated by month in the format jan06.txt, feb06.txt, ..., dec07.txt.
Within each file, it looks something like:
Header1 Header2 Header3 ...
Data1 ...