bash   46948

« earlier    

SS64 | Command line reference
Command line reference for Oracle, SQL Server, Windows and bash. Includes data dictionary, scripting commands and CSS.
Windows  Scripting  Sysadmin  System  PowerShell  Bash  SQL 
23 hours ago by GranoblasticMan
Writing Robust Bash Shell Scripts
Exit script on uninitialized variable (-u, nounset)

#!/bin/bash -u # allows +u on command line to override
set -o nounset # doesn't allow override
yesterday by davewsmith
bash - Read a file line by line assigning the value to a variable - Stack Overflow
while IFS='' read -r line || [[ -n "$line" ]]; do
echo "Text read from file: $line"
done < "$1"

IFS='' (or IFS=) prevents leading/trailing whitespace from being trimmed.

-r prevents backslash escapes from being interpreted.

|| [[ -n $line ]] prevents the last line from being ignored if it doesn't end with a \n (since read returns a non-zero exit code when it encounters EOF).
coding  bash  read-a-file 
2 days ago by richtbreak
The Bash Hackers Wiki [Bash Hackers Wiki]
This wiki is intended to hold documentation of any kind about GNU Bash. The main motivation was to provide human-readable documentation and information so users aren't forced to read every bit of the Bash manpage - which can be difficult to understand. However, the docs here are not meant as a newbie tutorial.
bash  documentation  reference 
2 days ago by mjaschen
Bash: General-purpose Yes/No prompt function ("ask")
This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer.
share-david-ian  bash 
2 days ago by BrightEyesDavid

« earlier    

related tags

2017  4*  analysis  api  app  appstore  archiver  args  argument  arguments  arin  automation  aws  bashrc  best-practices  bestpractices  blog  branch  build  case  cdn  cdnjs-command  cdnjs  check  cli  client  cloudconvert-cli  cloudconvert  coding  color  colors  command  commandline  completion  concatenate  config  console  converter  cron  crontab  curl  cwd  cygwin  daemon  date  datetime  day  development  devops  directory  doc  docker  document  documentation  docx  dotfiles  dropbox  edit  education  emacs  emoji  encrypt  encryption  every  example  explain  explanation  ffmpeg  file-manager  format  functionalprogramming  git  github  google-drive  guide  gz  gzip  help  history  hosts  hours  howto-linux  howto  howtogeek  http  httpie  hulk-bash  ifttt  importer  ios  javascript  keyboard-shortcuts  keyboard  learn  learning  library  line  lines  lint  linux  ls  mac  mc  midnight-commander  modification  mouse  multiple  n  node.js  node  nodejs  npm  one  onedrive  oop  opensource  os-linux  os-osx  os  osx  powershell  programare  programming  prompt  pwd  read-a-file  reddit  reference  remote  repository  resource  rest  rstacruz  rsync  ruby  run  save  screencast  screencasts  script  scripting  scripts  security  set  sh  share-david-ian  shell-scripting  shell  shellcheck  site  socket  spotlight  sql  ssh-control  ssh  stackoverflow  standard  string  styleguide  sysadmin  system  tar  tdd  terminal  test  testing  tex  time-saving  time  timestamp  tips  tool  tools  tricks  tutorial  type:reference  unix  utils  velestar  video  vim  vssh  wc  windows  word  working  x  xargs    分析  脚本 

Copy this bookmark: