recentpopularlog in


« earlier   
GitHub - edc/bass: Make Bash utilities usable in Fish shell
Bass makes it easy to use utilities written for Bash in fish shell.

Regular bash scripts can be used in fish shell just as scripts written in any language with proper shebang or explicitly using the interpreter (i.e. using bash However, many utilities, such as virtualenv, modify the shell environment and need to be sourced, and therefore cannot be used in fish. Sometimes, counterparts (such as the excellent virtualfish) are created, but that's often not the case.

Bass is created to make it possible to use bash uilities in fish shell without any modification. It works by capturing what environment variables are modified by the utility of interest, and replay the changes in fish.
bash  fish  unix 
18 hours ago by tero
bash: show from line X to line Y in huge file
showfilewindow(){ #cmd- showwindow <fromline> <toline> <file> i.e. basically CAT from line to line
awk "NR < $1 { next } { print } NR == $2 { exit }" $3

showfilewindow 1342 1530 MVPRD3.DAT

which you can pbcopy too!

and you can even let bash do arithmetic:

showfilewindow 4602328-2 4602328+1 MVPRD3.DAT
bash  howto 
yesterday by jluc77
junegunn/fzf: A command-line fuzzy finder
fzf - :cherry_blossom: A command-line fuzzy finder
bash  shell  vim  search  tools  fzf 
yesterday by lboulard

Copy this bookmark:

to read