Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. sed '1s/.*/ &/' file.txt
  2.  
  3. sed -s -i '1s/.*/ &/' *.txt
  4.  
  5. sed '1i\' file.txt
  6.  
  7. sed -s -i '1i\' *.txt
  8.  
  9. echo -n ' ' | cat - file
  10.  
  11. awk 'BEGIN{printf(" ")}1' data.txt
  12.  
  13. awk 'BEGIN{print""}1' data.txt
  14.  
  15. awk 'NR==1{a=$0; print ""; next} NR==2{print a; print $0; next}1' file
  16.  
  17. awk 'FNR==1{a=$0; print ""; next} FNR==2{print a; print $0; next}1' file1 file2 file3
  18.  
  19. perl -i -ne 'if(eof){$.=0;}if($.==1){print "n";}print' temp temp2
Add Comment
Please, Sign In to add comment