Use space as a delimiter with cut command?

I want to use space as a delimiter with the cut command. What syntax can I use for this? ...

Git Bash won't run my python files??

I have been trying to run my python files in Git Bash but I keep getting an error and can't figure out how to fix it...

How to declare 2D array in bash?

I'm wondering how to declare a 2D array in bash and then initialize to 0. In C it looks like this: int a[4][5] = {...

Conversion hex string into ascii in bash command line?

I have a lot of this kind of string and I want to find a command to convert it in ascii, I tried with echo -e and od...

Shell - Write variable contents to a file?

I would like to copy the contents of a variable (here called var) into a file. The name of the file is stored in an...

How to include file in a bash shell script?

Is there a way to include another shell script in a shell script to be able to access its functions? Like how in PH...

How to split a delimited string into an array in awk??

How to split the string when it contains pipe symbols | in it. I want to split them to be in array. I tried echo "...

Bash syntax error: unexpected end of file?

Forgive me for this is a very simple script in Bash. Here's the code: #!/bin/bash # june 2011 if [ $# -lt 3 -o $# ...

Get yesterday's date in bash on Linux, DST-safe?

I have a shell script that runs on Linux and uses this call to get yesterday's date in YYYY-MM-DD format: date -d "...

Java command not found on Linux?

In Oracle Enterprise Linux when I type java I am getting bash: java: command not found I have installed Java 1.6...

tar: add all files and directories in current directory INCLUDING .svn and so on?

I try to tar.gz a directory and use tar -czf workspace.tar.gz * The resulting tar includes .svn directories in su...

Transfer files using lftp in bash script?

I have server A test-lx, and server B test2-lx, I want to transfer files from server A to server B. While transferin...

ssh script returns 255 error?

In my code I have the following to run a remote script. ssh [email protected] "sh /home/user/backup_mysql.sh" ...