Sponsored Content
Top Forums Shell Programming and Scripting Issue with CD to a hidden dir Post 302428921 by radoulov on Friday 11th of June 2010 08:42:57 AM
Old 06-11-2010
Try to escape the single quotes in the echo arguments:

Code:
echo Gittin\' that trash out of my trailer.....

Code:
echo There ain\'t no trash in my trailer no more.....

You should check the exit status of the cd command:

Code:
cd /Users/WatsonN/.Trash || {
  printf 'Error accessing %s\n' '/Users/WatsonN/.Trash'
  exit 1
  }

This User Gave Thanks to radoulov For This Post:
 

9 More Discussions You Might Find Interesting

1. Solaris

NFS file/dir disappear issue

We have bunch of Sun Sparc workstations(solaris 7 & 8) connecting to a linux file server with NFS exports. Recently we upgraded our file server from fedora core1 to redhat enterprise linux 4. And since then we are experiencing a nightmare of file/dir missing. It happens randomly, couple of times... (1 Reply)
Discussion started by: motor98
1 Replies

2. Shell Programming and Scripting

Finding Hidden files and protecting the folder containing hidden files from deletion

Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is: find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \; But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Discussion started by: pochaw
4 Replies

3. Solaris

home dir mount issue

Hi all, I have to mount my home directory in one box, by default everyone's home directory will mount in all unix boxes which we have. But we have unmounted these home directories from some boxes to keep the data as safe. So for automation purpose i need my home directory only in those boxes to... (2 Replies)
Discussion started by: raghu.iv85
2 Replies

4. Cybersecurity

Inquiry of .awo hidden dir with bin file inside .eeesync extension

Hi, Me i ask if someone knows about this hidden directory or it me knows where this dir associated with or in a program. I had and notices this .awo dir with bin files inside title 6770669_info.eeesync files in my directory. I wonder if this is associated with my backup program or any program... (0 Replies)
Discussion started by: jao_madn
0 Replies

5. UNIX for Dummies Questions & Answers

List all directories hidden or not hidden

I want to list all directories hidden or not hidden. ls -ld */ => shows only not hidden directories so i guess the answer would be to add the a option to show all files ls -lad */ => not working :confused: ls -la | grep "^d" => works But I would like to know why I can't use ls -lad... (4 Replies)
Discussion started by: servus
4 Replies

6. Shell Programming and Scripting

Access Issue - dir and script

Hi All, I got access in UNIX box from our client. I am able to create folder, files, script etc.. in that folder. here is the issue: my login/base folder is = /home/ace I have created 2 folders within it Script ScriptLog in Script folder i have created 2 .ksh file ... (1 Reply)
Discussion started by: ace_friends22
1 Replies

7. Shell Programming and Scripting

Issue with copying files into dir inside for loop

Hi , I'm trying to move/copy the files inside the loop into a directory . I tried the below code and the issue is the data is not copying into the created directory but the files are copying into another file file_path="/home/etc" Last_Day=20130930 mkdir $file_path/ARC_${Last_Day} ... (3 Replies)
Discussion started by: smile689
3 Replies

8. UNIX for Beginners Questions & Answers

Finding Files with Perl on a Hidden Dir?

Greetings! Been a while since I futzed around with Perl, and came upon a minor headscratcher for the community ;) Here's the basic code which I'm trying to make tick over:#!/usr/bin/perl use strict; use warnings; use diagnostics; print " starting "; while (-e "~/.somedir/testFile")... (9 Replies)
Discussion started by: LinQ
9 Replies

9. Shell Programming and Scripting

Rsync - how to copy hidden folder or hidden files when using full path

Hello. I use this command : rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command. And no full source directories are in use, only some files. Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
GVFS-TRASH(1)							   User Commands						     GVFS-TRASH(1)

NAME
gvfs-trash - Move files or directories to the trash SYNOPSIS
gvfs-trash [OPTION...] [LOCATION...] DESCRIPTION
gvfs-trash sends files or directories to the "Trashcan". This can be a different folder depending on where the file is located, and not all file systems support this concept. In the common case that the file lives inside a users home directory, the trash folder is $XDG_DATA_HOME/Trash. Note that moving files to the trash does not free up space on the file system until the "Trashcan" is emptied. If you are interested in deleting a file irreversibly, see gvfs-rm. Inspecting and emptying the "Trashcan" is normally supported by graphical file managers such as nautilus, but you can also see the trash with the command gvfs-ls trash://. OPTIONS
The following options are understood: -h, --help Prints a short help text and exits. -f, --force Ignore nonexistent and non-deletable files. --empty Empty the trash. EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise. SEE ALSO
ls(1), gvfs-rm(1), Desktop Trash Can specification[1] NOTES
1. Desktop Trash Can specification http://freedesktop.org/wiki/Specifications/trash-spec gvfs GVFS-TRASH(1)
All times are GMT -4. The time now is 10:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy