14 tags on


  • All Sites

28 answers

Check if a directory exists in a shell script

What command can be used to check if a directory exists or not, within a shell script?

28 answers | 1 min ago by Grundlefleck on Stack Overflow
1 answer

Extract File Hierarchy from Google Drive in Java

I need to read the folders, subfolders and files from a Google Drive and create the respective hierarchy (of folders, subfolders and files) in my file system, with empty files (I only want to keep the ...

1 answer

How to write a script that takes two arguments lower bound and upper bound and displays the file sizes who are in that specific range?

This script has to be done utilizing the awk command. This is what I have so far, but it doesn't seem to be working. I am a newbie and trying to figure this out. If anyone can help me it would be ...

1 answers | 26 mins ago by arry617 on Stack Overflow
1 answer

VirtualBox Shared Folder Not Accessible By Apache2

I know there are a lot of posts on this issue but none of them address the issue I'm having. I am trying to set up a virtual machine following a tutorial on Host is a Surface Pro 2 running ...

2 answers

Why cant I overwrite a file with processed value?

This question prompted a thought I was not sure I understood well. I know that it is not possible or correct to use pipelines like cat myfile | grep -v mypattern > myfile due to how file handles ...

2 answers | 35 mins ago by rahul on Unix & Linux
3 answers

16.04 : “aptitude” at the command line

After upgrading to 16.04 I tried to use "sudo aptitude update" at the command line and got the error that the command was not found. What do I need to do to be able to use it again?

1 answer

How to check a column contain non numeric values

I want get the count of non numeric records in a file for particular column in unix. I have tried: awk -F"|" ' $1~ "^[0-9]*$" { print $1 }' File |wc -l But no luck. Help Me.

1 answers | 38 mins ago by Midhun on Stack Overflow
3 answers

How to rename all files in folders with pattern

I have a bunch of files like: I need to rename them all like: s01e03.mp4 s01e04.mp4 s03e12.mp4 ...

3 answers | 40 mins ago by Ya_34 on Ask Ubuntu
1 answer

Unable to forward the response

I am creating a webpage to visualize some data from database. The backend code is created in a servlet where I am doing 2 things: Firstly, calling a script to execute and print the response into the ...

2 answers

Why am I having / how can I fix this error: “shell_session_update: command not found”

Background I am getting into Ruby 2.x, and Rails 4.x, on a MacBook using OS X El Capitan (10.11.3), using the fish shell, employing the integration listed on this page: RVM - Fish Shell (Integration) ...

2 answers | 1 hour ago by Pysis on Super User
5 answers

Transposing data based on unique ID - awk

I really hope you can help. I am completely new to (g)awk and I have been fighting with it for the last two weeks. My original file is as follows - there is column with a unique Id and another with ...

5 answers | 1 hour ago by Yiannis on Stack Overflow
7 answers

How do you move all files (including hidden) from one directory to another?

How do I move all files in a directory (including the hidden ones) to another directory? For example, if I have a folder "Foo" with the files ".hidden" and "notHidden" inside, how do I move both ...

2 answers

Prevent kill from outputting message

I have a shell script that involves creating a background process and then killing it at some point. A stripped-down version of the strip is: #!/bin/bash sleep 100 & # do something kill $! sleep ...

2 answers | 1 hour ago by Jian on Stack Overflow
1 answer

How can I increase the speed of the cursor in Gnome terminal?

Compared to the getty tty's the cursor speed in Gnome Terminal feels slow and sluggish. By cursor speed I mean if say you were in the middle of a long line at a command prompt and you held down ...

0 answers

how to compare the directory name in c program in Linux?

Can I use following syntax to compare the directory name in c promming. if(ent->d_name=="exe1.c~")

0 answers

How to make oracle VirtualBox VM with serial console run faster?

I am debugging a linux project using Oracle Virtual Box. One of my changes made the kernel lock up. printk() statements are not buffered by design. So, when the system is rebooted after a lock up, any ...

0 answers

Wordpress Unable to find (or any other vvv default site) using Varying-Vagrant-Vagrants

I'm trying to use Varying-Vagrant-Vagrants (VVV), but every time I finish doing the Vagrant Up command and try to navigate to any default site, like, I just get a 404 page not found error. ...

2 answers

No “eth0” listed in ifconfig -a, only enp0s3 and lo

So, I setup my Ubuntu box with VirtualBox, default settings - simple ISO image launch. After installing Ubuntu, I proceeded to test multiple programs, and everything was working fine. I have full ...

0 answers

Virtualbox 5.0.20 - Linux Guest E_FAIL exception

I just upgraded my Virtualbox from 4x to 5.0.20 r106931 and my Linux guests won't start up in normal mode on Windows 7 64-bit host. It crashes with the following exception - Failed to open a session ...

1 answer

How to change from gnome deskop to lxde desktop in fedora 23 in virtualbox

I have just installed lxde desktop in fedora. I have installed default gnome desktop. Now i can not change gnome to lxde. In Ubuntu in time user account logging there was option that we can choose our ...

1 answer

merge csv unix based on column 1

Hi I have two csv files having same columns like, x.csv column1,column2 A,2 B,1 y.csv column1,column2 A,1 C,2 I want the output like: z.csv column1,column2 A,2 B,1 C,2 i.e. for the ...

1 answers | 5 hours ago by badal jain on Stack Overflow
3 answers

Get the number of days since file is last modified

I want to get the number of days since file last modified date to today's date. I use this $ ls -l uname.txt | awk '{print $6 , "", $7}' but it gives me the last modified date. But i want to know ...

3 answers | 5 hours ago by Stunner on Stack Overflow
0 answers

How to add a static route to AirPort Time Capsule?

I am building a virtual lab with VirtualBox to simulate a network with multiple servers, using a single physical host with 32GB of RAM. The host PC is connected to an AirPort Time Capsule for ...

2 answers

Using sed to extract string values

How would someone use sed to go about reordering groups of substrings within a string separated by commas? For instance, hello bob, my name is, joseph becomes: joseph, My name is, hello bob ...

2 answers | 6 hours ago by user on Stack Overflow
2 answers

Interface IP address is removed automatically on CentOs running inside VirtualBox

I have CentOS 6.4 on which i am running virtual box. Inside virtualBox i have CentOS based VM which works perfectly fine. The NAT and HostOnly interface have assinged IP Addresses through DHCP and ...

1 answer

VirtualBox Vboxmanager not seeing VMs.

I need to enable symlinks in my virtualbox shared file called sf_VMShare following this tutorial. When I run the command: VBoxManage setextradata YOURVMNAME ...

3 answers

ext3/ext4 physical block size view

I'm using a suse 11 server with xfs and using "xfs_info /srv" command i seen this. xfs_info /srv/ meta-data=/dev/mapper/vg01-srvvol isize=256 agcount=38, agsize=1964032 blks = ...

1 answer

Removing backup file automatically created by gedit using c program

how to delete the backup file automatically created by gedit editor in Linux through c programming?

1 answers | 7 hours ago by Sangay Wangmo on Ask Ubuntu
1 answer

Using sed to reorder string values within groups

Similar to Using sed to extract string values but I would like to know how to reorder string values within side of groups. For example, My name, is bob, hello. to Hello, Bob is, my name and ...

1 answers | 7 hours ago by user on Stack Overflow
2 answers

youtube-upload runs from terminal but not cron call

update_ working solution is added at the bottom!!!!!! the following is my script being called from cron under ubuntu 12.06 on digitalocean server droplet. the script runs and uploads to ...

15 30 50 per page
1 2 3