11 lines
121 B
Nix
11 lines
121 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.writeScriptBin "pop" ''
|
|
#! ${pkgs.bash}/bin/bash
|
|
|
|
file=$1
|
|
|
|
head -1 $file
|
|
sed -i 1d $file
|
|
''
|