Sponsored Content
Full Discussion: question about files?
Top Forums UNIX for Dummies Questions & Answers question about files? Post 44685 by wmosley2 on Tuesday 9th of December 2003 08:36:12 PM
Old 12-09-2003
question about files?

I was at a vendor demonstration last week, and the presenter had his laptop on screen where we could see the product demo. He had a Unix terminal screen up and created an empty file, but he used some command (I wish I had caught how he did this) to actually make the empty file a certain size. Does anyone know how this is accomplished? In this instance, he used it to show how a 20 Mb file would be transferred through a router.


Anyone know how this was possibly done?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question: Removing Files Using du

I want to identify files that have zero length, bascially files that are 0 byte in size. Then remove those files that are found using du. I wanted to do this in a way that, let's remove 0 size jpg files: foreach f (*jpg) du $f end This will only list the size and file name, I wanted... (4 Replies)
Discussion started by: ApprentiSorcier
4 Replies

2. Shell Programming and Scripting

Compare files question

Hi all, How do I compare contents of entire two files except for the first line is each of them? I am sure first lines from both my files are going to be different so I want to ignore them. Is there a easier way than creating temporary files by cutting out the first line and then comparing... (1 Reply)
Discussion started by: jakSun8
1 Replies

3. UNIX for Dummies Questions & Answers

listing files question

hello im new to linux programming trying to list files in a directory i current have the code to list all the files but i do not want the hidden files to show such as a file named .openoffice.org2.0 for example, can anyone help me or point me in the right direction #include <sys/types.h>... (2 Replies)
Discussion started by: Fortune
2 Replies

4. Shell Programming and Scripting

question using grep with files

hi, i'm trying to figure out how to use grep in different ways in bash.. lets say you have two files, one with a list of words and the other with text i want to go through the list of words in one file and for each word, find every occurrence of that word in the other file and display... (1 Reply)
Discussion started by: kratos.
1 Replies

5. Shell Programming and Scripting

Simple bash question - 2 files together

Hello Friends, I have a simple problem but I can't seem to find a solution, perhaps you could gimme a hand here.. I have to files 1.txt which contains the following 00 01 02 03 and 2.txt which contains the following: 20 21 22 23 All I need is to concatenate these 2 files in... (2 Replies)
Discussion started by: bashshadow1979
2 Replies

6. UNIX for Dummies Questions & Answers

Please help Question about Excel Files and Unix

Hello I have an excel file , it has 4 tabs , each having specific details for example it has a customer tab , it has a payments tab and it has an address tab Question is How do I seperate each of these tabs and load them into 3 different excel files Using Unix That is the... (2 Replies)
Discussion started by: arnab1978
2 Replies

7. Solaris

Question about copying files in Solaris

Hi everyone, What is the Solaris equivalent of cp -u? I'm copying files from one directory to another, and I'd like to only copy files which are newer. Thanks! (4 Replies)
Discussion started by: Fatbob
4 Replies

8. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies

9. Shell Programming and Scripting

Bash Looking into files question

I have a bunch of files that are messages in my directory. Each message has a date located in the file. How can I look into each file and find the date? Thank you for any help (7 Replies)
Discussion started by: totoro125
7 Replies

10. Shell Programming and Scripting

Question on awk source files

Im repeating same command to get count, filename from 4 different files, writing to one same file. awk 'END{print NR"|"FILENAME}' file.txt >> temp.txt; awk 'END{print NR"|"FILENAME}' asdf.txt >> temp.txt; awk 'END{print NR"|"FILENAME}' lkjh.txt >> temp.txt; awk 'END{print NR"|"FILENAME}'... (12 Replies)
Discussion started by: JSKOBS
12 Replies
Gnome2::Wnck::Screen(3pm)				User Contributed Perl Documentation				 Gnome2::Wnck::Screen(3pm)

NAME
Gnome2::Wnck::Screen - an object representing a screen HIERARCHY
Glib::Object +----Gnome2::Wnck::Screen METHODS
window = $screen->get_active_window workspace = $screen->get_active_workspace unsigned = $screen->get_background_pixmap $screen->change_workspace_count ($count) o $count (integer) screen = Gnome2::Wnck::Screen->get_default screen = Gnome2::Wnck::Screen->get_for_root ($root_window_id) o $root_window_id (unsigned) $screen->force_update screen = Gnome2::Wnck::Screen->get ($index) o $index (integer) integer = $screen->get_height $screen->move_viewport ($x, $y) o $x (integer) o $y (integer) boolean = $screen->net_wm_supports ($atom) o $atom (string) integer = $screen->get_number window = $screen->get_previously_active_window $screen->release_workspace_layout ($current_token) o $current_token (integer) boolean = $screen->get_showing_desktop $screen->toggle_showing_desktop ($show) o $show (boolean) integer = $screen->try_set_workspace_layout ($current_token, $rows, $columns) o $current_token (integer) o $rows (integer) o $columns (integer) integer = $screen->get_width string or undef = $screen->get_window_manager_name list = $screen->get_windows Returns a list of WnckWindow's. list = $screen->get_windows_stacked Returns a list of WnckWindow's. integer = $screen->get_workspace_count workspace = $screen->get_workspace ($workspace) o $workspace (integer) list = $screen->get_workspaces SIGNALS
active-window-changed (Gnome2::Wnck::Screen, Gnome2::Wnck::Window) active-workspace-changed (Gnome2::Wnck::Screen, Gnome2::Wnck::Workspace) window-stacking-changed (Gnome2::Wnck::Screen) window-opened (Gnome2::Wnck::Screen, Gnome2::Wnck::Window) window-closed (Gnome2::Wnck::Screen, Gnome2::Wnck::Window) workspace-created (Gnome2::Wnck::Screen, Gnome2::Wnck::Workspace) workspace-destroyed (Gnome2::Wnck::Screen, Gnome2::Wnck::Workspace) application-opened (Gnome2::Wnck::Screen, Gnome2::Wnck::Application) application-closed (Gnome2::Wnck::Screen, Gnome2::Wnck::Application) class-group-opened (Gnome2::Wnck::Screen, Gnome2::Wnck::ClassGroup) class-group-closed (Gnome2::Wnck::Screen, Gnome2::Wnck::ClassGroup) background-changed (Gnome2::Wnck::Screen) showing-desktop-changed (Gnome2::Wnck::Screen) viewports-changed (Gnome2::Wnck::Screen) window-manager-changed (Gnome2::Wnck::Screen) SEE ALSO
Gnome2::Wnck, Glib::Object COPYRIGHT
Copyright (C) 2003-2006 by the gtk2-perl team. This software is licensed under the LGPL. See Gnome2::Wnck for a full notice. perl v5.14.2 2011-11-16 Gnome2::Wnck::Screen(3pm)
All times are GMT -4. The time now is 04:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy