Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Вот так будет работать и в ksh и в bash и в zsh:echo "строка" | tee -a file*.conf
echo "ваша строка" | tee -a file1.conf file2.conf file3.conf
либо так
for i in {1.conf,2.conf,3.conf};do echo "ваша строка" >> $i;done
sed -i -s '$a text' *.txt
[[email protected] t]$ ls
file1.txt file2.txt file3.txt
[[email protected] t]$
[[email protected] t]$ cat file1.txt
a
[[email protected] t]$ cat file2.txt
b
[[email protected] t]$ cat file3.txt
c
[[email protected] t]$
[[email protected] t]$ sed -i -s '$a text' *.txt
[[email protected] t]$
[[email protected] t]$ cat file1.txt
a
text
[[email protected] t]$ cat file2.txt
b
text
[[email protected] t]$ cat file3.txt
c
text
[[email protected] t]$
console
ls -1 /path >> list.file
bash
echo `ls -1 /path` >> list.file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question