1439 links
  • linx
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Play Videos
Links per page: 20 50 100
page 1 / 1
4 results tagged line x
  • Line Awesome — Free Beautiful Icon Font
    June 18, 2021 at 4:17:49 PM UTC - permalink -
    QRCode
    - https://icons8.com/line-awesome/
    awesome font-awesome icons line
  • Note: loading lines to array from file or list
    # Loading from __DATA__
    my @hosts = <DATA>; 
    chomp @hosts;   
    
    # => ["coucou.com", "coco.com", "cici.com", "chichi.com", "cucu.com", "cece.com" ]
    
    __DATA__
    coucou.com
    coco.com
    cici.com
    chichi.com
    cucu.com
    cece.com
    
    # Loading from file ./hosts
    use Mojo::File;
    my $file = Mojo::File->new('hosts');  
    my @hosts = grep { $_ ne '' } grep {  $_ !~ m/^#/ } split '\n', $file->slurp;
    
    # => ["coucou.com", "coco.com", "cici.com", "chichi.com", "cucu.com", "cece.com" ]
    
    # ./hosts
    # Deals with comments and blank lines
    coucou.com 
    coco.com 
    
    # More hosts
    cici.com 
    chichi.com 
    cucu.com 
    cece.com
    September 15, 2020 at 1:35:27 PM UTC * - permalink -
    QRCode
    - https://balik.network/linx/?DieEtQ
    chomp file line perl slurp
  • thumbnail
    Emacs query-replace with newlines - Stack Overflow

    Try query-replace enter [ space ] enter M-j enter ! enter

    October 30, 2017 at 4:44:06 PM UTC * - permalink -
    QRCode
    - https://stackoverflow.com/questions/4861774/emacs-query-replace-with-newlines
    carriage-return emacs line newline query-replace space
  • Delete a line containing a specific string using sed - Stack Overflow

    To remove the line and print the output to standard out:

    sed '/pattern to match/d' ./infile

    To directly modify the file (with GNU sed):

    sed -i '/pattern to match/d' ./infile

    August 7, 2015 at 2:37:45 PM UTC - permalink -
    QRCode
    - https://stackoverflow.com/questions/5410757/delete-a-line-containing-a-specific-string-using-sed
    line pattern sed unix
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation