05-09-2012
@juan.brein
What version of Solaris/SunOS do you have and what Shell are you using?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing a script which reads a file line by line and then assigns it to a variable like this 1090373422_4028715212.jpg. I have images with file name of this format in some other directory. In my script I want to assign variable with this file name and then find this filename in some other... (11 Replies)
Discussion started by: jyotib
11 Replies
2. Shell Programming and Scripting
I have to write a shell script which can delete all the files and directories recursively inside the specified directory but should not delete the specified directory.
Please some body help me in writing the script. (3 Replies)
Discussion started by: deepthi.s
3 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to organize my MB Pro by moving all my jpeg files to a single folder from the desktop. There are some on the desktop that are not in any folder. I was at the command line and typed
mv *.jpg "Jpeg files"
but it only moved the files that were on the desktop, not any of the ones that... (3 Replies)
Discussion started by: Straitsfan
3 Replies
4. Shell Programming and Scripting
Hi Everyone!
Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file.
Any ideas?
Thank you! (1 Reply)
Discussion started by: DanTheMan
1 Replies
5. Solaris
Display the number of files in a directory and recursively in each subdirectory
To look something like below, for example
/var 35
/var/tmp 56
/var/adm 46
Any ideas how can we do this? :wall: (1 Reply)
Discussion started by: jakerock
1 Replies
6. Shell Programming and Scripting
accidentally i have changed ownership of a directory,subdirectory and files wil below command. I want to the change ownership back as same as in same directory on another server. How can i do it?
chown -R user:group /u01
is there any simple script? it is really an urgent need.. (2 Replies)
Discussion started by: johnveslin
2 Replies
7. Shell Programming and Scripting
I want to list files that end with .c in the direct subdirectory of the current directory. I have tried the following command:
find ./ -mindepth 2 -maxdepth 2 -name "*.c"
Is that right? Or is there any easier way to handle that problem?
Another problem is that I want to grep in a file to find... (5 Replies)
Discussion started by: Ray Sun
5 Replies
8. Shell Programming and Scripting
I used rm * and it deleted the files in the directory but gives and error message for unsuccessful subdirectory deletion.
"rm: cannot remove 'DirectoryName': Is a directory"
I dont want to explicitly get the above error.
What are the modifications I have to do in the rm command? (3 Replies)
Discussion started by: duplicate
3 Replies
9. Shell Programming and Scripting
I love the -newerct flag for the Cygwin find command on windows.
Can I use "/usr/bin/find . -newerct '3 hours ago'" to conditionally copy a directory tree so that only the files in the directory tree that are younger than 3 hours are copied to my destination directory such that the directory... (4 Replies)
Discussion started by: siegfried
4 Replies
10. Shell Programming and Scripting
I need to copy a complete directory structure into a new location. But I want to have all files copied into one directory and leave out the directory structure. So all files must be placed in one directory. (4 Replies)
Discussion started by: ReneVL
4 Replies
IFP(1) General Commands Manual IFP(1)
NAME
ifp - access iRiver iFP audio devices
SYNOPSIS
ifp command [arguments ...]
DESCRIPTION
ifp lets you manage your music on an iRiver iFP music player acting in "Manager Mode". If your player is using "UMS Mode", then you don't
need this program; it will appear as new drive when you plug it in.
This manual page documents the version of ifp included as an example application for the libifp library. The interface is intended to mimic
the ifp binary found in the ifp-line binary package.
ifp can upload or download files or directories, delete or make directories on the device, format the device, or upgrade your firmware.
COMMANDS
ls [directory]
List the files and directories on the device. The root directory is /. Directories are preceded with 'd' and other files with 'f'.
df Display total and free space on the device.
upload localfile remotefile
Copy the file named localfile to the iFP device, and name it remotefile. (This is like cp.)
upload localfile remotedir
Copy the file named localfile to the iFP device, into remotedir. (This is like cp.)
upload localdir remotedir
Copy the entire directory localdir to the device, into remotedir. This copies into a subdirectory, so upload foo / puts files from
the directory foo info /foo on the device. (This is like cp -R.) This uploads the entire directory, not just audio files.
put localfile | localdir
Upload the file or directory to the device, with the same name it has locally. If a directory is given, it is put in /.
download remotefile localfile
download remotefile localdir
download remotedir localdir
Like upload, but copies from the iFP device to your system. Some proprietary file types may not be downloaded.
get remotefile | remotedir
Like put, but copies files or directories from the device to your current working directory.
rm [-r] file
Delete (recursively) a file (or directory) on the device.
rmdir dir
Delete an empty directory on the device.
mkdir dir
Create a directory on the device.
battery
Display battery status of the device.
typestring
Display the model number of the device.
firmversion
Display the firmware revision currently on the device.
format Reformat the device's memory. This will delete all your music.
firmupdate FIRMWARE.HEX
Upload the file FIRMWARE.HEX as new firmware for the device. This will not delete your music, but may have many other detrimental
effects. Don't turn the device off or unplug it while the firmware is updating, and don't attempt to upload new firmware with a low
battery.
AUTHORS
libifp was written by Geoff Oakham, based on ifp by Yamashiro Jun. This manual page was written for Debian by Joe Wreschnig
<piman@debian.org>, but may be used by others.
May 30th, 2004 IFP(1)